Open mdmintz opened 4 months ago
pytest
examples/
cd examples/ pytest --co -q *.py translations/*.py chart_maker/*.py presenter/*.py boilerplates/*.py boilerplates/samples/*.py visual_testing/*.py tour_examples/*.py unit_tests/*.py master_qa/*.py dialog_boxes/*.py migration/protractor/*.py migration/raw_selenium/*.py offline_examples/*.py
210 tests collected
basic_test.py::MyTestClass::test_basics coffee_cart_tests.py::CoffeeCartTests::test_1_verify_nav_link_to_coffee_cart coffee_cart_tests.py::CoffeeCartTests::test_buy_one_cappuccino coffee_cart_tests.py::CoffeeCartTests::test_coffee_promo_with_preview_0 coffee_cart_tests.py::CoffeeCartTests::test_coffee_promo_with_preview_1 coffee_cart_tests.py::CoffeeCartTests::test_context_click_add_coffee coffee_cart_tests.py::CoffeeCartTests::test_remove_added_coffee edge_test.py::EdgeTests::test_edge github_test.py::GitHubTests::test_github hack_the_planet.py::HackTests::test_all_your_base_are_belong_to_us handle_alert_test.py::HandleAlertTests::test_alerts iframe_tests.py::FrameTests::test_iframe_basics iframe_tests.py::FrameTests::test_iframes_with_context_manager iframe_tests.py::FrameTests::test_set_content_to_frame locale_code_test.py::LocaleCodeTests::test_locale_code my_first_test.py::MyTestClass::test_swag_labs nth_child_test.py::NthChildSelectorTests::test_locate_rows_with_colors old_wordle_script.py::WordleTests::test_wordle parameterized_test.py::SearchTests::test_parameterized_search_0_SeleniumBase_Commander parameterized_test.py::SearchTests::test_parameterized_search_1_SeleniumBase_Recorder parameterized_test.py::SearchTests::test_parameterized_search_2_SeleniumBase_Syntax performance_test.py::PerformanceClass::test_performance_of_swag_labs proxy_test.py::ProxyTests::test_proxy rate_limiting_test.py::RateLimitingTests::test_rate_limited_printing raw_file_call.py::TinyMceTest::test_tinymce raw_main_call.py::TinyMceTest::test_tinymce raw_parameter_script.py::MyTestClass::test_swag_labs sb_fixture_tests.py::test_sb_fixture_with_no_class sb_fixture_tests.py::Test_SB_Fixture::test_sb_fixture_inside_class shadow_root_test.py::ShadowRootTest::test_shadow_root swag_labs_user_tests.py::SwagLabsTests::test_swag_labs_user_flows_0_standard_user swag_labs_user_tests.py::SwagLabsTests::test_swag_labs_user_flows_1_problem_user test_3d_apis.py::ThreeJSTests::test_animation test_apple_site.py::AppleTests::test_apple_developer_site_webdriver_instructions test_assert_elements.py::ListAssertTests::test_assert_list_of_elements test_calculator.py::CalculatorTests::test_6_times_7_plus_12_equals_54 test_canvas.py::CanvasTests::test_canvas_click_from_center test_canvas.py::CanvasTests::test_click_with_offset test_cdp_ad_blocking.py::CDPNetworkBlockingTests::test_cdp_network_blocking test_checkboxes.py::CheckboxTests::test_checkboxes_and_radio_buttons test_chinese_pdf.py::ChinesePdfTests::test_chinese_pdf test_chromedriver.py::ChromedriverTests::test_chromedriver_matches_chrome test_coffee_cart.py::CoffeeCartTest::test_coffee_cart test_console_logging.py::TestConsoleLogging::test_console_logging test_contains_selector.py::ContainsSelectorTests::test_contains_selector test_cycle_elements.py::CycleTests::test_cycle_elements_with_tab_and_press_enter test_decryption.py::DecryptionTests::test_decrypt_password test_deferred_asserts.py::DeferredAssertTests::test_deferred_asserts test_demo_site.py::DemoSiteTests::test_demo_site test_detect_404s.py::BrokenLinkTests::test_link_checking test_docs_site.py::DocsSiteTests::test_docs test_double_click.py::DoubleClickTests::test_switch_to_frame_and_double_click test_double_click.py::DoubleClickTests::test_switch_to_frame_of_element_and_double_click test_download_files.py::DownloadTests::test_download_chromedriver_notes test_download_files.py::DownloadTests::test_download_files_from_pypi test_download_images.py::DownloadImages::test_download_images_directly test_download_images.py::DownloadImages::test_download_images_via_screenshot test_drag_and_drop.py::DragAndDropTests::test_drag_and_drop test_drag_and_drop.py::DragAndDropTests::test_w3schools_drag_and_drop test_error_page.py::ErrorPageTests::test_error_page test_event_firing.py::EventFiringTests::test_event_firing_webdriver test_fail.py::FailingTests::test_find_army_of_robots_on_xkcd_desert_island test_geolocation.py::TestGeolocation::test_geolocation test_get_coffee.py::GetCoffeeTest::test_get_coffee test_get_locale_code.py::LocaleTests::test_get_locale_code test_get_pdf_text.py::PdfTests::test_get_pdf_text test_get_user_agent.py::UserAgentTests::test_get_user_agent test_hack_search.py::HackingTests::test_hack_search test_image_saving.py::ImageTests::test_1_save_element_as_image_file test_image_saving.py::ImageTests::test_2_add_text_overlay_to_image test_image_saving.py::ImageTests::test_3_add_text_overlay_to_page_section test_image_saving.py::ImageTests::test_4_add_text_overlay_to_full_page test_inspect_html.py::HtmlInspectorTests::test_html_inspector test_login.py::SwagLabsLoginTests::test_swag_labs_login test_markers.py::MarkerTestSuite::test_A test_markers.py::MarkerTestSuite::test_B test_markers.py::MarkerTestSuite::test_C test_markers.py::MarkerTestSuite::test_D test_mfa_login.py::TestMFALogin::test_mfa_login test_multiple_drivers.py::MultipleDriversTest::test_multiple_drivers test_null.py::NullTests::test_null test_override_driver.py::OverrideDriverTest::test_driver_override test_override_sb_fixture.py::test_override_fixture_no_class test_override_sb_fixture.py::TestOverride::test_override_fixture_inside_class test_parse_soup.py::SoupParsingTests::test_beautiful_soup_parsing test_pdf_asserts.py::PdfAssertTests::test_assert_pdf_text test_pytest_parametrize.py::test_sb_fixture_with_no_class[List of Features] test_pytest_parametrize.py::test_sb_fixture_with_no_class[Command Line Options] test_pytest_parametrize.py::Test_SB_Fixture::test_sb_fixture_inside_class[Console Scripts] test_pytest_parametrize.py::Test_SB_Fixture::test_sb_fixture_inside_class[API Reference] test_repeat_tests.py::RepeatTests::test_repeat_this_test_with_parameterized_0 test_repeat_tests.py::RepeatTests::test_repeat_this_test_with_parameterized_1 test_repeat_tests.py::test_repeat_this_test_with_pytest_parametrize[0] test_repeat_tests.py::test_repeat_this_test_with_pytest_parametrize[1] test_repeat_tests.py::RepeatTestsWithPytest::test_repeat_test_with_pytest_parametrize[0] test_repeat_tests.py::RepeatTestsWithPytest::test_repeat_test_with_pytest_parametrize[1] test_request_sb_fixture.py::test_request_sb_fixture test_request_sb_fixture.py::Test_Request_Fixture::test_request_sb_fixture_in_class test_save_screenshots.py::ScreenshotTests::test_save_screenshot test_save_screenshots.py::ScreenshotTests::test_save_screenshot_to_logs test_sb_fixture.py::test_sb_fixture_with_no_class test_sb_fixture.py::Test_SB_Fixture::test_sb_fixture_inside_class test_scrape_bing.py::ScrapeBingTests::test_scrape_bing test_select_options.py::SelectTestClass::test_base test_shadow_dom.py::ShadowDomTests::test_shadow_dom test_show_file_choosers.py::FileUpload::test_show_file_choosers test_simple_login.py::TestSimpleLogin::test_simple_login test_skype_site.py::SkypeTests::test_skype_mobile_site test_suite.py::MyTestSuite::test_1 test_suite.py::MyTestSuite::test_2 test_suite.py::MyTestSuite::test_3 test_suite.py::MyTestSuite::test_4 test_swag_labs.py::SwagLabsTests::test_swag_labs_basic_flow test_tinymce.py::TinyMceTests::test_tinymce test_todomvc.py::TodoMVC::test_todomvc_0_jquery test_todomvc.py::TodoMVC::test_todomvc_1_react test_todomvc.py::TodoMVC::test_todomvc_2_vue test_url_asserts.py::URLTestClass::test_url_asserts test_usefixtures.py::Test_UseFixtures::test_usefixtures_on_class test_verify_chromedriver.py::ChromedriverTests::test_fail_if_versions_dont_match test_window_switching.py::TabSwitchingTests::test_switch_to_tabs test_xfail.py::XFailTests::test_xfail test_xkcd.py::MyTestClass::test_xkcd time_limit_test.py::TimeLimitTests::test_runtime_limit_decorator time_limit_test.py::TimeLimitTests::test_set_time_limit_method uc_cdp_events.py::CDPTests::test_display_cdp_events upgrade_chromedriver.py::TestUpgradeChromedriver::test_upgrade_chromedriver upload_file_test.py::FileUploadButtonTests::test_file_upload_button user_agent_test.py::UserAgentTests::test_user_agent verify_undetected.py::UndetectedTest::test_browser_is_undetected wordle_test.py::WordleTests::test_wordle xpath_test.py::XPathTests::test_xpath youtube_search_test.py::YouTubeSearchTests::test_youtube_autocomplete_results translations/chinese_test_1.py::我的测试类::test_例子1 translations/dutch_test_1.py::MijnTestklasse::test_voorbeeld_1 translations/english_test_1.py::MyTestClass::test_example_1 translations/french_test_1.py::MaClasseDeTest::test_exemple_1 translations/italian_test_1.py::MiaClasseDiTest::test_esempio_1 translations/japanese_test_1.py::私のテストクラス::test_例1 translations/korean_test_1.py::테스트_클래스::test_실시예_1 translations/portuguese_test_1.py::MinhaClasseDeTeste::test_exemplo_1 translations/russian_test_1.py::МойТестовыйКласс::test_пример_1 translations/spanish_test_1.py::MiClaseDePrueba::test_ejemplo_1 chart_maker/chart_presentation.py::ChartMakerPresentation::test_chart_maker_presentation chart_maker/my_chart.py::MyChartMakerClass::test_chart_maker chart_maker/pie_charts.py::PieCharts::test_pie_charts chart_maker/test_area_chart.py::MyChartMakerClass::test_area_chart chart_maker/test_display_chart.py::MyChartMakerClass::test_display_chart chart_maker/test_line_chart.py::MyChartMakerClass::test_line_chart chart_maker/test_multi_series.py::MyChartMakerClass::test_multi_series chart_maker/test_save_chart.py::MyChartMakerClass::test_save_chart presenter/core_presentation.py::PresentationWithChart::test_seleniumbase_chart presenter/edge_presentation.py::EdgePresentationClass::test_presentation presenter/fundamentals.py::MyTestClass::test_presentation presenter/multi_uc.py::test_multi_threaded[0] presenter/multi_uc.py::test_multi_threaded[1] presenter/multi_uc.py::test_multi_threaded[2] presenter/my_presentation.py::MyPresenterClass::test_presenter presenter/py_virtual_envs.py::PythonVirtualEnvs::test_py_virtual_envs presenter/uc_presentation.py::UCPresentationClass::test_presentation boilerplates/boilerplate_test.py::MyTestClass::test_boilerplate boilerplates/classic_obj_test.py::ObjTests::test_data_url_page boilerplates/sb_fixture_test.py::ObjTests::test_data_url_page boilerplates/samples/google_test.py::GoogleTests::test_google_dot_com boilerplates/samples/sb_swag_test.py::MyTests::test_swag_labs_login boilerplates/samples/swag_labs_test.py::MyTests::test_swag_labs_login boilerplates/samples/test_page_objects.py::MyTests::test_page_objects visual_testing/layout_test.py::VisualLayoutTests::test_applitools_layout_change visual_testing/python_home_test.py::VisualLayoutTests::test_python_home_layout_change visual_testing/test_layout_fail.py::VisualLayout_FixtureTests::test_python_home_change visual_testing/test_layout_fail.py::VisualLayoutFailureTests::test_applitools_change visual_testing/test_layout_fail.py::VisualLayoutFailureTests::test_xkcd_logo_change visual_testing/xkcd_visual_test.py::VisualLayoutTests::test_xkcd_layout_change tour_examples/bootstrap_google_tour.py::MyTourClass::test_google_tour tour_examples/bootstrap_xkcd_tour.py::MyTestClass::test_bootstrap_tour tour_examples/driverjs_maps_tour.py::MyTestClass::test_create_tour tour_examples/google_tour.py::MyTourClass::test_google_tour tour_examples/hopscotch_google_tour.py::MyTourClass::test_google_tour tour_examples/introjs_google_tour.py::MyTourClass::test_google_tour tour_examples/maps_introjs_tour.py::MyTourClass::test_google_maps_tour tour_examples/octocat_tour.py::MyTourClass::test_octocat_tour tour_examples/shepherd_google_tour.py::MyTourClass::test_google_tour tour_examples/xkcd_tour.py::MyTestClass::test_create_tour unit_tests/verify_framework.py::test_simple_cases unit_tests/verify_framework.py::test_basecase unit_tests/verify_framework.py::test_run_with_dashboard unit_tests/verify_framework.py::test_sb_fixture unit_tests/verify_framework.py::test_request_sb_fixture unit_tests/verify_framework.py::test_rerun_failures unit_tests/verify_framework.py::test_browser_launcher unit_tests/verify_framework.py::test_framework_components master_qa/basic_masterqa_test_0.py::MasterQATests::test_masterqa master_qa/masterqa_test_1.py::MasterQATests::test_xkcd dialog_boxes/dialog_box_tour.py::DialogBoxTests::test_dialog_boxes migration/protractor/example_test.py::AngularJSHomePageTests::test_greet_user migration/protractor/example_test.py::AngularJSHomePageTests::test_todo_list migration/protractor/input_test.py::AngularMaterialInputTests::test_invalid_input migration/protractor/mat_paginator_test.py::AngularMaterialPaginatorTests::test_pagination migration/raw_selenium/flaky_messy_raw.py::FlakyMessyRawSelenium::test_add_item_to_cart migration/raw_selenium/long_messy_raw.py::LongMessyRawSelenium::test_add_item_to_cart migration/raw_selenium/messy_raw.py::MessyRawSelenium::test_add_item_to_cart migration/raw_selenium/refined_raw.py::RefinedRawSelenium::test_add_item_to_cart migration/raw_selenium/simple_sbase.py::CleanSeleniumBase::test_add_item_to_cart offline_examples/load_html_test.py::OfflineTests::test_load_html_string offline_examples/test_demo_page.py::OfflineTests::test_demo_page offline_examples/test_extended_driver.py::OfflineTests::test_extended_driver offline_examples/test_handle_alerts.py::OfflineTests::test_alerts offline_examples/test_request_fixture.py::test_request_fixture offline_examples/test_request_fixture.py::RequestTests::test_request_fixture_in_class offline_examples/test_user_agent.py::OfflineTests::test_get_user_agent
(Note that this list does not include examples that need to be run with pure python, or with behave.)
python
behave
Since we're over 200 examples now, I made it official in the ReadMe: https://github.com/seleniumbase/SeleniumBase/commit/0ea82ce275a0af681f5721cd6444638535d42246
Documenting example tests runnable with
pytest
from theexamples/
folder(Note that this list does not include examples that need to be run with pure
python
, or withbehave
.)