seleniumbase 4.32.2__tar.gz → 4.32.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {seleniumbase-4.32.2/seleniumbase.egg-info → seleniumbase-4.32.3}/PKG-INFO +1 -1
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_gui_click.py +1 -1
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_pyautogui.py +1 -1
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_recaptcha.py +0 -2
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/verify_undetected.py +1 -1
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/__version__.py +1 -1
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/browser_launcher.py +9 -2
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/sb_cdp.py +65 -13
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/base_case.py +67 -13
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/shared_utils.py +18 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/driver_manager.py +8 -7
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/cdp_driver/cdp_util.py +29 -18
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/cdp_driver/config.py +6 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/cdp_driver/connection.py +5 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/cdp_driver/tab.py +1 -1
- {seleniumbase-4.32.2 → seleniumbase-4.32.3/seleniumbase.egg-info}/PKG-INFO +1 -1
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/.gitignore +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/LICENSE +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/MANIFEST.in +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/README.md +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/basic_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/behave_bdd/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/behave_bdd/features/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/behave_bdd/features/environment.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/behave_bdd/features/steps/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/behave_bdd/features/steps/calculator.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/behave_bdd/features/steps/fail_page.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/behave_bdd/features/steps/imported.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/behave_bdd/features/steps/swag_labs.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/base_test_case.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/boilerplate_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/classic_obj_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/page_objects.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/samples/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/samples/file_parsing/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/samples/file_parsing/parse_files.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/samples/google_objects.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/samples/google_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/samples/sb_swag_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/samples/swag_labs_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/samples/test_page_objects.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/boilerplates/sb_fixture_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/capabilities/mac_cap_file.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/capabilities/sample_cap_file_BS.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/capabilities/sample_cap_file_SL.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/capabilities/selenoid_cap_file.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/capabilities/win10_cap_file.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/chart_maker/chart_presentation.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/chart_maker/my_chart.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/chart_maker/pie_charts.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/chart_maker/test_area_chart.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/chart_maker/test_display_chart.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/chart_maker/test_line_chart.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/chart_maker/test_multi_series.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/chart_maker/test_save_chart.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/coffee_cart_tests.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/custom_settings.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/desktop_apps/recorder.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/dialog_boxes/dialog_box_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/edge_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/github_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/gui_test_runner.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/hack_the_planet.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/handle_alert_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/iframe_tests.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/locale_code_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/master_qa/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/master_qa/basic_masterqa_test_0.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/master_qa/masterqa_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/protractor/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/protractor/example_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/protractor/input_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/protractor/mat_paginator_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/raw_selenium/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/raw_selenium/flaky_messy_raw.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/raw_selenium/long_messy_raw.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/raw_selenium/messy_raw.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/raw_selenium/refined_raw.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/migration/raw_selenium/simple_sbase.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/my_first_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/nth_child_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/offline_examples/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/offline_examples/load_html_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/offline_examples/test_demo_page.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/offline_examples/test_extended_driver.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/offline_examples/test_handle_alerts.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/offline_examples/test_request_fixture.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/offline_examples/test_user_agent.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/old_wordle_script.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/parameterized_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/performance_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/presenter/core_presentation.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/presenter/edge_presentation.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/presenter/fundamentals.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/presenter/multi_uc.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/presenter/my_presentation.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/presenter/py_virtual_envs.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/presenter/uc_presentation.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/presenter/uc_presentation_3.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/proxy_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/rate_limiting_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_ahrefs.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_antibot_login.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_bing_captcha.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_block.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_brotector_captcha.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_call.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_cdp_logging.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_cf.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_cookies.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_detection.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_driver_context.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_driver_manager.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_file_call.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_form_turnstile.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_games.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_hobbit.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_login_context.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_login_driver.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_login_sb.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_main_call.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_mobile.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_multi_drivers.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_nopecha.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_order_tickets.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_parameter_script.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_performance_logs.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_pixelscan.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_robot.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_sb.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_test_scripts.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_turnstile.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/raw_uc_mode.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/sb_fixture_tests.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/shadow_root_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/swag_labs_user_tests.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_3d_apis.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_apple_site.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_assert_elements.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_calculator.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_canvas.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_cdp_ad_blocking.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_checkboxes.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_chinese_pdf.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_chromedriver.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_coffee_cart.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_console_logging.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_contains_selector.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_cycle_elements.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_decryption.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_deferred_asserts.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_demo_site.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_detect_404s.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_docs_site.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_double_click.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_download_files.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_download_images.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_drag_and_drop.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_error_page.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_event_firing.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_fail.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_geolocation.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_get_coffee.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_get_locale_code.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_get_pdf_text.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_get_user_agent.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_hack_search.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_highlight_elements.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_image_saving.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_inspect_html.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_login.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_markers.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_mfa_login.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_multiple_drivers.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_null.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_override_driver.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_override_sb_fixture.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_parse_soup.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_pdf_asserts.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_pytest_parametrize.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_repeat_tests.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_request_sb_fixture.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_save_screenshots.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_sb_fixture.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_scrape_bing.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_select_options.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_shadow_dom.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_show_file_choosers.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_simple_login.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_skype_site.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_suite.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_swag_labs.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_tinymce.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_todomvc.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_url_asserts.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_usefixtures.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_verify_chromedriver.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_window_switching.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_xfail.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/test_xkcd.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/time_limit_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/bootstrap_google_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/bootstrap_xkcd_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/driverjs_maps_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/google_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/hopscotch_google_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/introjs_google_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/maps_introjs_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/octocat_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/recordings/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/recordings/shepherd_google_tour_rec.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/shepherd_google_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/tour_examples/xkcd_tour.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/translations/chinese_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/translations/dutch_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/translations/english_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/translations/french_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/translations/italian_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/translations/japanese_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/translations/korean_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/translations/portuguese_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/translations/russian_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/translations/spanish_test_1.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/uc_cdp_events.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/unit_tests/verify_framework.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/upgrade_chromedriver.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/upload_file_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/user_agent_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/visual_testing/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/visual_testing/layout_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/visual_testing/python_home_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/visual_testing/test_layout_fail.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/visual_testing/xkcd_visual_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/wordle_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/xpath_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/examples/youtube_search_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/install.sh +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/behave/features/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/behave/features/environment.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/behave/features/steps/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/behave/features/steps/calculator.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/behave/features/steps/fail_page.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/behave/features/steps/real_world.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/behave/features/steps/swag_labs.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/brython/index.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/node_js/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/node_js/my_first_test.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/integrations/node_js/test_demo_site.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/mkdocs_build/prepare.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/pyproject.toml +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/pytest.ini +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/requirements.txt +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/sbase/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/sbase/__main__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/sbase/steps.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/__main__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/behave/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/behave/behave_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/behave/behave_sb.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/behave/steps.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/common/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/common/decorators.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/common/encryption.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/common/exceptions.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/common/obfuscate.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/common/unobfuscate.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/config/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/config/ad_block_list.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/config/proxy_list.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/config/settings.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/logo_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/rich_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/run.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_behave_gui.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_caseplans.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_commander.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_install.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_mkchart.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_mkdir.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_mkfile.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_mkpres.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_mkrec.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_objectify.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_print.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/console_scripts/sb_recorder.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/application_manager.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/capabilities_parser.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/colored_traceback.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/create_db_tables.sql +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/detect_b_ver.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/download_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/encoded_images.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/jqc_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/log_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/mysql.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/proxy_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/recorder_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/report_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/s3_manager.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/sb_driver.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/session_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/settings_parser.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/style_sheet.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/testcase_manager.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/tour_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/core/visual_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/drivers/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/extensions/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/extensions/ad_block.zip +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/extensions/disable_csp.zip +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/extensions/recorder.zip +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/extensions/sbase_ext.zip +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/constants.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/css_to_xpath.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/errors.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/js_utils.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/page_actions.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/page_utils.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/unittest_helper.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/words.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/fixtures/xpath_to_css.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/js_code/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/js_code/active_css_js.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/js_code/live_js.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/js_code/recorder_js.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/masterqa/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/masterqa/master_qa.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/base_plugin.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/basic_test_info.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/db_reporting_plugin.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/page_source.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/pytest_plugin.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/s3_logging_plugin.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/sb_manager.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/screen_shots.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/plugins/selenium_plugin.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/resources/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/chinese.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/dutch.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/french.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/italian.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/japanese.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/korean.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/master_dict.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/portuguese.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/russian.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/spanish.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/translate/translator.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/cdp.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/cdp_driver/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/cdp_driver/_contradict.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/cdp_driver/browser.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/cdp_driver/element.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/dprocess.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/options.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/patcher.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/reactor.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/webelement.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/download_selenium_server.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/font_color +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/grid-hub +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/grid-node +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/grid_hub.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/grid_node.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/register-grid-node.bat +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/register-grid-node.sh +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/start-grid-hub.bat +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_grid/start-grid-hub.sh +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_ide/__init__.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/utilities/selenium_ide/convert_ide.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase.egg-info/SOURCES.txt +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase.egg-info/dependency_links.txt +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase.egg-info/entry_points.txt +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase.egg-info/requires.txt +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase.egg-info/top_level.txt +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/setup.cfg +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/setup.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/site/prepare.py +0 -0
- {seleniumbase-4.32.2 → seleniumbase-4.32.3}/virtualenv_install.sh +0 -0
@@ -8,7 +8,7 @@ if "linux" in sys.platform or "win32" in sys.platform:
|
|
8
8
|
|
9
9
|
with SB(uc=True, test=True, rtf=True, agent=agent) as sb:
|
10
10
|
url = "https://gitlab.com/users/sign_in"
|
11
|
-
sb.
|
11
|
+
sb.uc_open_with_reconnect(url)
|
12
12
|
sb.uc_gui_click_captcha() # Only if needed
|
13
13
|
sb.assert_element('label[for="user_login"]')
|
14
14
|
sb.assert_element('input[data-testid*="username"]')
|
@@ -8,7 +8,7 @@ if "linux" in sys.platform or "win32" in sys.platform:
|
|
8
8
|
|
9
9
|
with SB(uc=True, test=True, rtf=True, agent=agent) as sb:
|
10
10
|
url = "https://gitlab.com/users/sign_in"
|
11
|
-
sb.uc_open_with_reconnect(url
|
11
|
+
sb.uc_open_with_reconnect(url)
|
12
12
|
sb.uc_gui_handle_captcha() # Only if needed
|
13
13
|
sb.assert_element('label[for="user_login"]')
|
14
14
|
sb.assert_element('input[data-testid*="username"]')
|
@@ -2,7 +2,6 @@ from seleniumbase import SB
|
|
2
2
|
|
3
3
|
with SB(uc=True, test=True) as sb:
|
4
4
|
url = "https://seleniumbase.io/apps/recaptcha"
|
5
|
-
sb.activate_cdp_mode(url)
|
6
5
|
sb.uc_gui_handle_captcha() # Try with TAB + SPACEBAR
|
7
6
|
sb.assert_element("img#captcha-success", timeout=3)
|
8
7
|
sb.set_messenger_theme(location="top_left")
|
@@ -10,7 +9,6 @@ with SB(uc=True, test=True) as sb:
|
|
10
9
|
|
11
10
|
with SB(uc=True, test=True) as sb:
|
12
11
|
url = "https://seleniumbase.io/apps/recaptcha"
|
13
|
-
sb.activate_cdp_mode(url)
|
14
12
|
sb.uc_gui_click_captcha('iframe[src*="/recaptcha/"]')
|
15
13
|
sb.assert_element("img#captcha-success", timeout=3)
|
16
14
|
sb.set_messenger_theme(location="top_left")
|
@@ -10,7 +10,7 @@ class UndetectedTest(BaseCase):
|
|
10
10
|
url = "https://gitlab.com/users/sign_in"
|
11
11
|
if not self.undetectable:
|
12
12
|
self.get_new_driver(undetectable=True)
|
13
|
-
self.
|
13
|
+
self.uc_open_with_reconnect(url)
|
14
14
|
self.uc_gui_click_captcha()
|
15
15
|
self.assert_text("Username", '[for="user_login"]', timeout=3)
|
16
16
|
self.post_message("SeleniumBase wasn't detected", duration=4)
|
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.32.
|
2
|
+
__version__ = "4.32.3"
|
@@ -549,7 +549,7 @@ def uc_open_with_cdp_mode(driver, url=None):
|
|
549
549
|
cdp = types.SimpleNamespace()
|
550
550
|
CDPM = sb_cdp.CDPMethods(loop, page, driver)
|
551
551
|
cdp.get = CDPM.get
|
552
|
-
cdp.open = CDPM.
|
552
|
+
cdp.open = CDPM.open
|
553
553
|
cdp.reload = CDPM.reload
|
554
554
|
cdp.refresh = CDPM.refresh
|
555
555
|
cdp.add_handler = CDPM.add_handler
|
@@ -590,6 +590,7 @@ def uc_open_with_cdp_mode(driver, url=None):
|
|
590
590
|
cdp.medimize = CDPM.medimize
|
591
591
|
cdp.set_window_rect = CDPM.set_window_rect
|
592
592
|
cdp.reset_window_size = CDPM.reset_window_size
|
593
|
+
cdp.set_locale = CDPM.set_locale
|
593
594
|
cdp.set_attributes = CDPM.set_attributes
|
594
595
|
cdp.internalize_links = CDPM.internalize_links
|
595
596
|
cdp.get_window = CDPM.get_window
|
@@ -2179,8 +2180,13 @@ def _set_chrome_options(
|
|
2179
2180
|
or IS_LINUX # switches to Xvfb (non-headless)
|
2180
2181
|
)
|
2181
2182
|
):
|
2183
|
+
chrome_options.add_argument("--no-pings")
|
2182
2184
|
chrome_options.add_argument("--disable-popup-blocking")
|
2183
|
-
chrome_options.add_argument("--homepage=chrome://
|
2185
|
+
chrome_options.add_argument("--homepage=chrome://version/")
|
2186
|
+
chrome_options.add_argument("--animation-duration-scale=0")
|
2187
|
+
chrome_options.add_argument("--wm-window-animations-disabled")
|
2188
|
+
chrome_options.add_argument("--enable-privacy-sandbox-ads-apis")
|
2189
|
+
chrome_options.add_argument("--disable-background-timer-throttling")
|
2184
2190
|
# Skip remaining options that trigger anti-bot services
|
2185
2191
|
return chrome_options
|
2186
2192
|
chrome_options.add_argument("--test-type")
|
@@ -4523,6 +4529,7 @@ def get_local_driver(
|
|
4523
4529
|
and uc_chrome_version
|
4524
4530
|
and uc_chrome_version >= 117
|
4525
4531
|
and (headless or headless2)
|
4532
|
+
and chromium_arg != "decoy"
|
4526
4533
|
):
|
4527
4534
|
from seleniumbase.console_scripts import (
|
4528
4535
|
sb_install
|
@@ -76,13 +76,21 @@ class CDPMethods():
|
|
76
76
|
|
77
77
|
def get(self, url):
|
78
78
|
url = shared_utils.fix_url_as_needed(url)
|
79
|
-
|
79
|
+
driver = self.driver
|
80
|
+
if hasattr(driver, "cdp_base"):
|
81
|
+
driver = driver.cdp_base
|
82
|
+
self.page = self.loop.run_until_complete(driver.get(url))
|
80
83
|
url_protocol = url.split(":")[0]
|
81
84
|
safe_url = True
|
82
85
|
if url_protocol not in ["about", "data", "chrome"]:
|
83
86
|
safe_url = False
|
84
87
|
if not safe_url:
|
85
88
|
time.sleep(constants.UC.CDP_MODE_OPEN_WAIT)
|
89
|
+
self.__slow_mode_pause_if_set()
|
90
|
+
self.loop.run_until_complete(self.page.wait())
|
91
|
+
|
92
|
+
def open(self, url):
|
93
|
+
self.get(url)
|
86
94
|
|
87
95
|
def reload(self, ignore_cache=True, script_to_evaluate_on_load=None):
|
88
96
|
self.loop.run_until_complete(
|
@@ -111,18 +119,28 @@ class CDPMethods():
|
|
111
119
|
with the closest text-length to the text being searched for."""
|
112
120
|
self.__add_light_pause()
|
113
121
|
selector = self.__convert_to_css_if_xpath(selector)
|
122
|
+
early_failure = False
|
114
123
|
if (":contains(" in selector):
|
115
124
|
tag_name = selector.split(":contains(")[0].split(" ")[-1]
|
116
125
|
text = selector.split(":contains(")[1].split(")")[0][1:-1]
|
117
126
|
with suppress(Exception):
|
118
127
|
self.loop.run_until_complete(
|
119
|
-
self.page.select(tag_name, timeout=
|
128
|
+
self.page.select(tag_name, timeout=timeout)
|
120
129
|
)
|
121
|
-
self.loop.run_until_complete(
|
122
|
-
|
123
|
-
|
130
|
+
self.loop.run_until_complete(
|
131
|
+
self.page.find(text, timeout=timeout)
|
132
|
+
)
|
133
|
+
elements = []
|
134
|
+
with suppress(Exception):
|
135
|
+
elements = self.find_elements_by_text(text, tag_name=tag_name)
|
136
|
+
if elements:
|
137
|
+
return self.__add_sync_methods(elements[0])
|
138
|
+
else:
|
139
|
+
early_failure = True
|
124
140
|
failure = False
|
125
141
|
try:
|
142
|
+
if early_failure:
|
143
|
+
raise Exception("Failed!")
|
126
144
|
element = self.loop.run_until_complete(
|
127
145
|
self.page.find(
|
128
146
|
selector, best_match=best_match, timeout=timeout
|
@@ -230,9 +248,11 @@ class CDPMethods():
|
|
230
248
|
)
|
231
249
|
|
232
250
|
def __click(self, element):
|
233
|
-
|
251
|
+
result = (
|
234
252
|
self.loop.run_until_complete(element.click_async())
|
235
253
|
)
|
254
|
+
self.loop.run_until_complete(self.page.wait())
|
255
|
+
return result
|
236
256
|
|
237
257
|
def __flash(self, element):
|
238
258
|
return (
|
@@ -250,9 +270,11 @@ class CDPMethods():
|
|
250
270
|
)
|
251
271
|
|
252
272
|
def __mouse_click(self, element):
|
253
|
-
|
273
|
+
result = (
|
254
274
|
self.loop.run_until_complete(element.mouse_click_async())
|
255
275
|
)
|
276
|
+
self.loop.run_until_complete(self.page.wait())
|
277
|
+
return result
|
256
278
|
|
257
279
|
def __mouse_drag(self, element, destination):
|
258
280
|
return (
|
@@ -353,33 +375,51 @@ class CDPMethods():
|
|
353
375
|
|
354
376
|
def tile_windows(self, windows=None, max_columns=0):
|
355
377
|
"""Tile windows and return the grid of tiled windows."""
|
378
|
+
driver = self.driver
|
379
|
+
if hasattr(driver, "cdp_base"):
|
380
|
+
driver = driver.cdp_base
|
356
381
|
return self.loop.run_until_complete(
|
357
|
-
|
382
|
+
driver.tile_windows(windows, max_columns)
|
358
383
|
)
|
359
384
|
|
360
385
|
def get_all_cookies(self, *args, **kwargs):
|
386
|
+
driver = self.driver
|
387
|
+
if hasattr(driver, "cdp_base"):
|
388
|
+
driver = driver.cdp_base
|
361
389
|
return self.loop.run_until_complete(
|
362
|
-
|
390
|
+
driver.cookies.get_all(*args, **kwargs)
|
363
391
|
)
|
364
392
|
|
365
393
|
def set_all_cookies(self, *args, **kwargs):
|
394
|
+
driver = self.driver
|
395
|
+
if hasattr(driver, "cdp_base"):
|
396
|
+
driver = driver.cdp_base
|
366
397
|
return self.loop.run_until_complete(
|
367
|
-
|
398
|
+
driver.cookies.set_all(*args, **kwargs)
|
368
399
|
)
|
369
400
|
|
370
401
|
def save_cookies(self, *args, **kwargs):
|
402
|
+
driver = self.driver
|
403
|
+
if hasattr(driver, "cdp_base"):
|
404
|
+
driver = driver.cdp_base
|
371
405
|
return self.loop.run_until_complete(
|
372
|
-
|
406
|
+
driver.cookies.save(*args, **kwargs)
|
373
407
|
)
|
374
408
|
|
375
409
|
def load_cookies(self, *args, **kwargs):
|
410
|
+
driver = self.driver
|
411
|
+
if hasattr(driver, "cdp_base"):
|
412
|
+
driver = driver.cdp_base
|
376
413
|
return self.loop.run_until_complete(
|
377
|
-
|
414
|
+
driver.cookies.load(*args, **kwargs)
|
378
415
|
)
|
379
416
|
|
380
417
|
def clear_cookies(self, *args, **kwargs):
|
418
|
+
driver = self.driver
|
419
|
+
if hasattr(driver, "cdp_base"):
|
420
|
+
driver = driver.cdp_base
|
381
421
|
return self.loop.run_until_complete(
|
382
|
-
|
422
|
+
driver.cookies.clear(*args, **kwargs)
|
383
423
|
)
|
384
424
|
|
385
425
|
def sleep(self, seconds):
|
@@ -408,17 +448,20 @@ class CDPMethods():
|
|
408
448
|
self.__add_light_pause()
|
409
449
|
element.click()
|
410
450
|
self.__slow_mode_pause_if_set()
|
451
|
+
self.loop.run_until_complete(self.page.wait())
|
411
452
|
|
412
453
|
def click_active_element(self):
|
413
454
|
self.loop.run_until_complete(
|
414
455
|
self.page.evaluate("document.activeElement.click()")
|
415
456
|
)
|
416
457
|
self.__slow_mode_pause_if_set()
|
458
|
+
self.loop.run_until_complete(self.page.wait())
|
417
459
|
|
418
460
|
def click_if_visible(self, selector):
|
419
461
|
if self.is_element_visible(selector):
|
420
462
|
self.find_element(selector).click()
|
421
463
|
self.__slow_mode_pause_if_set()
|
464
|
+
self.loop.run_until_complete(self.page.wait())
|
422
465
|
|
423
466
|
def mouse_click(self, selector, timeout=settings.SMALL_TIMEOUT):
|
424
467
|
"""(Attempt simulating a mouse click)"""
|
@@ -427,6 +470,7 @@ class CDPMethods():
|
|
427
470
|
self.__add_light_pause()
|
428
471
|
element.mouse_click()
|
429
472
|
self.__slow_mode_pause_if_set()
|
473
|
+
self.loop.run_until_complete(self.page.wait())
|
430
474
|
|
431
475
|
def nested_click(self, parent_selector, selector):
|
432
476
|
"""
|
@@ -436,6 +480,7 @@ class CDPMethods():
|
|
436
480
|
element = self.find_element(parent_selector)
|
437
481
|
element.query_selector(selector).mouse_click()
|
438
482
|
self.__slow_mode_pause_if_set()
|
483
|
+
self.loop.run_until_complete(self.page.wait())
|
439
484
|
|
440
485
|
def get_nested_element(self, parent_selector, selector):
|
441
486
|
"""(Can be used to find an element inside an iframe)"""
|
@@ -483,6 +528,7 @@ class CDPMethods():
|
|
483
528
|
text = text[:-1] + "\r\n"
|
484
529
|
element.send_keys(text)
|
485
530
|
self.__slow_mode_pause_if_set()
|
531
|
+
self.loop.run_until_complete(self.page.wait())
|
486
532
|
|
487
533
|
def press_keys(self, selector, text, timeout=settings.SMALL_TIMEOUT):
|
488
534
|
"""Similar to send_keys(), but presses keys at human speed."""
|
@@ -499,6 +545,7 @@ class CDPMethods():
|
|
499
545
|
element.send_keys("\r\n")
|
500
546
|
time.sleep(0.0375)
|
501
547
|
self.__slow_mode_pause_if_set()
|
548
|
+
self.loop.run_until_complete(self.page.wait())
|
502
549
|
|
503
550
|
def type(self, selector, text, timeout=settings.SMALL_TIMEOUT):
|
504
551
|
"""Similar to send_keys(), but clears the text field first."""
|
@@ -510,6 +557,7 @@ class CDPMethods():
|
|
510
557
|
text = text[:-1] + "\r\n"
|
511
558
|
element.send_keys(text)
|
512
559
|
self.__slow_mode_pause_if_set()
|
560
|
+
self.loop.run_until_complete(self.page.wait())
|
513
561
|
|
514
562
|
def evaluate(self, expression):
|
515
563
|
"""Run a JavaScript expression and return the result."""
|
@@ -760,6 +808,10 @@ class CDPMethods():
|
|
760
808
|
)
|
761
809
|
)
|
762
810
|
|
811
|
+
def set_locale(self, locale):
|
812
|
+
"""(Settings will take effect on the next page load)"""
|
813
|
+
self.loop.run_until_complete(self.page.set_locale(locale))
|
814
|
+
|
763
815
|
def set_attributes(self, selector, attribute, value):
|
764
816
|
"""This method uses JavaScript to set/update a common attribute.
|
765
817
|
All matching selectors from querySelectorAll() are used.
|
@@ -4099,6 +4099,7 @@ class BaseCase(unittest.TestCase):
|
|
4099
4099
|
or not any(os.scandir(user_data_dir))
|
4100
4100
|
)
|
4101
4101
|
and self.browser == "chrome"
|
4102
|
+
and shared_utils.is_chrome_130_or_newer(binary_location)
|
4102
4103
|
):
|
4103
4104
|
import tempfile
|
4104
4105
|
if not user_data_dir:
|
@@ -4108,7 +4109,7 @@ class BaseCase(unittest.TestCase):
|
|
4108
4109
|
try:
|
4109
4110
|
decoy_driver = browser_launcher.get_driver(
|
4110
4111
|
browser_name=browser_name,
|
4111
|
-
headless=
|
4112
|
+
headless=False,
|
4112
4113
|
locale_code=locale_code,
|
4113
4114
|
use_grid=use_grid,
|
4114
4115
|
protocol=protocol,
|
@@ -4134,7 +4135,7 @@ class BaseCase(unittest.TestCase):
|
|
4134
4135
|
log_cdp_events=log_cdp_events,
|
4135
4136
|
no_sandbox=no_sandbox,
|
4136
4137
|
disable_gpu=disable_gpu,
|
4137
|
-
headless1=
|
4138
|
+
headless1=False,
|
4138
4139
|
headless2=True,
|
4139
4140
|
incognito=incognito,
|
4140
4141
|
guest_mode=guest_mode,
|
@@ -4147,12 +4148,12 @@ class BaseCase(unittest.TestCase):
|
|
4147
4148
|
host_resolver_rules=host_resolver_rules,
|
4148
4149
|
block_images=block_images,
|
4149
4150
|
do_not_track=do_not_track,
|
4150
|
-
chromium_arg=
|
4151
|
+
chromium_arg="decoy",
|
4151
4152
|
firefox_arg=firefox_arg,
|
4152
4153
|
firefox_pref=firefox_pref,
|
4153
4154
|
user_data_dir=user_data_dir,
|
4154
|
-
extension_zip=
|
4155
|
-
extension_dir=
|
4155
|
+
extension_zip=None,
|
4156
|
+
extension_dir=None,
|
4156
4157
|
disable_features=disable_features,
|
4157
4158
|
binary_location=binary_location,
|
4158
4159
|
driver_version=driver_version,
|
@@ -4166,12 +4167,13 @@ class BaseCase(unittest.TestCase):
|
|
4166
4167
|
device_pixel_ratio=d_p_r,
|
4167
4168
|
browser=browser_name,
|
4168
4169
|
)
|
4169
|
-
time.sleep(0.
|
4170
|
+
time.sleep(0.2)
|
4170
4171
|
except Exception:
|
4171
4172
|
pass
|
4172
4173
|
finally:
|
4173
4174
|
with suppress(Exception):
|
4174
4175
|
decoy_driver.quit()
|
4176
|
+
time.sleep(0.1)
|
4175
4177
|
# Launch a web browser
|
4176
4178
|
new_driver = browser_launcher.get_driver(
|
4177
4179
|
browser_name=browser_name,
|
@@ -4513,8 +4515,15 @@ class BaseCase(unittest.TestCase):
|
|
4513
4515
|
cookies_file.writelines(json_cookies)
|
4514
4516
|
cookies_file.close()
|
4515
4517
|
|
4516
|
-
def load_cookies(self, name="cookies.txt"):
|
4517
|
-
"""
|
4518
|
+
def load_cookies(self, name="cookies.txt", expiry=False):
|
4519
|
+
"""
|
4520
|
+
Loads the page cookies from the "saved_cookies" folder.
|
4521
|
+
Usage for setting expiry:
|
4522
|
+
If expiry == 0 or False: Delete "expiry".
|
4523
|
+
If expiry == -1 (or < 0): Do not modify "expiry".
|
4524
|
+
If expiry > 0: Set "expiry" to expiry minutes in the future.
|
4525
|
+
If expiry == True: Set "expiry" to 24 hours in the future.
|
4526
|
+
"""
|
4518
4527
|
cookies = self.get_saved_cookies(name)
|
4519
4528
|
self.wait_for_ready_state_complete()
|
4520
4529
|
origin = self.get_origin()
|
@@ -4523,8 +4532,14 @@ class BaseCase(unittest.TestCase):
|
|
4523
4532
|
if "domain" in cookie:
|
4524
4533
|
if cookie["domain"] not in origin:
|
4525
4534
|
cookie["domain"] = trim_origin
|
4526
|
-
if "expiry" in cookie:
|
4535
|
+
if "expiry" in cookie and (not expiry or expiry == 0):
|
4527
4536
|
del cookie["expiry"]
|
4537
|
+
elif isinstance(expiry, (int, float)) and expiry < 0:
|
4538
|
+
pass
|
4539
|
+
elif isinstance(expiry, (int, float)) and expiry > 0:
|
4540
|
+
cookie["expiry"] = int(time.time()) + int(expiry * 60.0)
|
4541
|
+
elif expiry:
|
4542
|
+
cookie["expiry"] = int(time.time()) + 86400
|
4528
4543
|
self.driver.add_cookie(cookie)
|
4529
4544
|
|
4530
4545
|
def delete_all_cookies(self):
|
@@ -4585,18 +4600,57 @@ class BaseCase(unittest.TestCase):
|
|
4585
4600
|
def get_cookies(self):
|
4586
4601
|
return self.driver.get_cookies()
|
4587
4602
|
|
4588
|
-
def add_cookie(self, cookie_dict):
|
4603
|
+
def add_cookie(self, cookie_dict, expiry=False):
|
4589
4604
|
"""Usage examples:
|
4590
4605
|
self.add_cookie({'name': 'foo', 'value': 'bar'})
|
4591
4606
|
self.add_cookie({'name': 'foo', 'value': 'bar', 'path': '/'})
|
4592
4607
|
self.add_cookie({'name': 'foo', 'value': 'bar', 'secure': True})
|
4593
4608
|
self.add_cookie({'name': 'foo', 'value': 'bar', 'sameSite': 'Strict'})
|
4609
|
+
Usage for setting expiry:
|
4610
|
+
If expiry == 0 or False: Delete "expiry".
|
4611
|
+
If expiry == -1 (or < 0): Do not modify "expiry".
|
4612
|
+
If expiry > 0: Set "expiry" to expiry minutes in the future.
|
4613
|
+
If expiry == True: Set "expiry" to 24 hours in the future.
|
4594
4614
|
"""
|
4615
|
+
cookie = cookie_dict
|
4616
|
+
if "domain" in cookie:
|
4617
|
+
origin = self.get_origin()
|
4618
|
+
trim_origin = origin.split("://")[-1]
|
4619
|
+
if cookie["domain"] not in origin:
|
4620
|
+
cookie["domain"] = trim_origin
|
4621
|
+
if "expiry" in cookie and (not expiry or expiry == 0):
|
4622
|
+
del cookie["expiry"]
|
4623
|
+
elif isinstance(expiry, (int, float)) and expiry < 0:
|
4624
|
+
pass
|
4625
|
+
elif isinstance(expiry, (int, float)) and expiry > 0:
|
4626
|
+
cookie["expiry"] = int(time.time()) + int(expiry * 60.0)
|
4627
|
+
elif expiry:
|
4628
|
+
cookie["expiry"] = int(time.time()) + 86400
|
4595
4629
|
self.driver.add_cookie(cookie_dict)
|
4596
4630
|
|
4597
|
-
def add_cookies(self, cookies):
|
4598
|
-
|
4599
|
-
|
4631
|
+
def add_cookies(self, cookies, expiry=False):
|
4632
|
+
"""
|
4633
|
+
Usage for setting expiry:
|
4634
|
+
If expiry == 0 or False: Delete "expiry".
|
4635
|
+
If expiry == -1 (or < 0): Do not modify "expiry".
|
4636
|
+
If expiry > 0: Set "expiry" to expiry minutes in the future.
|
4637
|
+
If expiry == True: Set "expiry" to 24 hours in the future.
|
4638
|
+
"""
|
4639
|
+
origin = self.get_origin()
|
4640
|
+
trim_origin = origin.split("://")[-1]
|
4641
|
+
for cookie in cookies:
|
4642
|
+
if "domain" in cookie:
|
4643
|
+
if cookie["domain"] not in origin:
|
4644
|
+
cookie["domain"] = trim_origin
|
4645
|
+
if "expiry" in cookie and (not expiry or expiry == 0):
|
4646
|
+
del cookie["expiry"]
|
4647
|
+
elif isinstance(expiry, (int, float)) and expiry < 0:
|
4648
|
+
pass
|
4649
|
+
elif isinstance(expiry, (int, float)) and expiry > 0:
|
4650
|
+
cookie["expiry"] = int(time.time()) + int(expiry * 60.0)
|
4651
|
+
elif expiry:
|
4652
|
+
cookie["expiry"] = int(time.time()) + 86400
|
4653
|
+
self.driver.add_cookie(cookie)
|
4600
4654
|
|
4601
4655
|
def __set_esc_skip(self):
|
4602
4656
|
if hasattr(self, "esc_end") and self.esc_end:
|
@@ -4,6 +4,7 @@ import os
|
|
4
4
|
import platform
|
5
5
|
import sys
|
6
6
|
import time
|
7
|
+
from contextlib import suppress
|
7
8
|
from seleniumbase import config as sb_config
|
8
9
|
from seleniumbase.fixtures import constants
|
9
10
|
|
@@ -99,6 +100,23 @@ def is_cdp_swap_needed(driver):
|
|
99
100
|
)
|
100
101
|
|
101
102
|
|
103
|
+
def is_chrome_130_or_newer(self, binary_location=None):
|
104
|
+
from seleniumbase.core import detect_b_ver
|
105
|
+
|
106
|
+
"""Due to changes in Chrome-130, UC Mode freezes at start-up
|
107
|
+
unless the user-data-dir already exists and is populated."""
|
108
|
+
with suppress(Exception):
|
109
|
+
if not binary_location:
|
110
|
+
ver = detect_b_ver.get_browser_version_from_os("google-chrome")
|
111
|
+
else:
|
112
|
+
ver = detect_b_ver.get_browser_version_from_binary(
|
113
|
+
binary_location
|
114
|
+
)
|
115
|
+
if ver and len(ver) > 3 and int(ver.split(".")[0]) >= 130:
|
116
|
+
return True
|
117
|
+
return False
|
118
|
+
|
119
|
+
|
102
120
|
def format_exc(exception, message):
|
103
121
|
"""Formats an exception message to make the output cleaner."""
|
104
122
|
from selenium.common.exceptions import ElementNotVisibleException
|
@@ -233,6 +233,7 @@ def Driver(
|
|
233
233
|
wire (bool): Shortcut / Duplicate of "use_wire".
|
234
234
|
pls (str): Shortcut / Duplicate of "page_load_strategy".
|
235
235
|
"""
|
236
|
+
from contextlib import suppress
|
236
237
|
from seleniumbase import config as sb_config
|
237
238
|
from seleniumbase.config import settings
|
238
239
|
from seleniumbase.fixtures import constants
|
@@ -800,6 +801,7 @@ def Driver(
|
|
800
801
|
or not any(os.scandir(user_data_dir))
|
801
802
|
)
|
802
803
|
and browser == "chrome"
|
804
|
+
and shared_utils.is_chrome_130_or_newer(binary_location)
|
803
805
|
):
|
804
806
|
import tempfile
|
805
807
|
import time
|
@@ -849,12 +851,12 @@ def Driver(
|
|
849
851
|
host_resolver_rules=host_resolver_rules,
|
850
852
|
block_images=block_images,
|
851
853
|
do_not_track=do_not_track,
|
852
|
-
chromium_arg=
|
854
|
+
chromium_arg="decoy",
|
853
855
|
firefox_arg=firefox_arg,
|
854
856
|
firefox_pref=firefox_pref,
|
855
857
|
user_data_dir=user_data_dir,
|
856
|
-
extension_zip=
|
857
|
-
extension_dir=
|
858
|
+
extension_zip=None,
|
859
|
+
extension_dir=None,
|
858
860
|
disable_features=disable_features,
|
859
861
|
binary_location=binary_location,
|
860
862
|
driver_version=driver_version,
|
@@ -868,14 +870,13 @@ def Driver(
|
|
868
870
|
device_pixel_ratio=d_p_r,
|
869
871
|
browser=browser_name,
|
870
872
|
)
|
871
|
-
time.sleep(0.
|
873
|
+
time.sleep(0.2)
|
872
874
|
except Exception:
|
873
875
|
pass
|
874
876
|
finally:
|
875
|
-
|
877
|
+
with suppress(Exception):
|
876
878
|
decoy_driver.quit()
|
877
|
-
|
878
|
-
pass
|
879
|
+
time.sleep(0.1)
|
879
880
|
|
880
881
|
driver = browser_launcher.get_driver(
|
881
882
|
browser_name=browser_name,
|
@@ -5,6 +5,7 @@ import logging
|
|
5
5
|
import time
|
6
6
|
import types
|
7
7
|
import typing
|
8
|
+
from seleniumbase.fixtures import shared_utils
|
8
9
|
from typing import Optional, List, Union, Callable
|
9
10
|
from .element import Element
|
10
11
|
from .browser import Browser
|
@@ -92,30 +93,40 @@ async def start(
|
|
92
93
|
|
93
94
|
async def start_async(*args, **kwargs) -> Browser:
|
94
95
|
headless = False
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
96
|
+
binary_location = None
|
97
|
+
if "browser_executable_path" in kwargs:
|
98
|
+
binary_location = kwargs["browser_executable_path"]
|
99
|
+
if shared_utils.is_chrome_130_or_newer(binary_location):
|
100
|
+
if "headless" in kwargs:
|
101
|
+
headless = kwargs["headless"]
|
102
|
+
decoy_args = kwargs
|
103
|
+
decoy_args["headless"] = True
|
104
|
+
driver = await start(**decoy_args)
|
105
|
+
kwargs["headless"] = headless
|
106
|
+
kwargs["user_data_dir"] = driver.config.user_data_dir
|
107
|
+
time.sleep(0.2)
|
108
|
+
driver.stop() # Due to Chrome-130, must stop & start
|
109
|
+
time.sleep(0.1)
|
104
110
|
return await start(*args, **kwargs)
|
105
111
|
|
106
112
|
|
107
113
|
def start_sync(*args, **kwargs) -> Browser:
|
108
114
|
loop = asyncio.get_event_loop()
|
109
115
|
headless = False
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
116
|
+
binary_location = None
|
117
|
+
if "browser_executable_path" in kwargs:
|
118
|
+
binary_location = kwargs["browser_executable_path"]
|
119
|
+
if shared_utils.is_chrome_130_or_newer(binary_location):
|
120
|
+
if "headless" in kwargs:
|
121
|
+
headless = kwargs["headless"]
|
122
|
+
decoy_args = kwargs
|
123
|
+
decoy_args["headless"] = True
|
124
|
+
driver = loop.run_until_complete(start(**decoy_args))
|
125
|
+
kwargs["headless"] = headless
|
126
|
+
kwargs["user_data_dir"] = driver.config.user_data_dir
|
127
|
+
time.sleep(0.2)
|
128
|
+
driver.stop() # Due to Chrome-130, must stop & start
|
129
|
+
time.sleep(0.1)
|
119
130
|
return loop.run_until_complete(start(*args, **kwargs))
|
120
131
|
|
121
132
|
|
@@ -105,9 +105,13 @@ class Config:
|
|
105
105
|
"--remote-allow-origins=*",
|
106
106
|
"--no-first-run",
|
107
107
|
"--no-service-autorun",
|
108
|
+
"--disable-auto-reload",
|
108
109
|
"--no-default-browser-check",
|
109
110
|
"--homepage=about:blank",
|
110
111
|
"--no-pings",
|
112
|
+
"--wm-window-animations-disabled",
|
113
|
+
"--animation-duration-scale=0",
|
114
|
+
"--enable-privacy-sandbox-ads-apis",
|
111
115
|
"--safebrowsing-disable-download-protection",
|
112
116
|
'--simulate-outdated-no-au="Tue, 31 Dec 2099 23:59:59 GMT"',
|
113
117
|
"--password-store=basic",
|
@@ -118,10 +122,12 @@ class Config:
|
|
118
122
|
"--disable-prompt-on-repost",
|
119
123
|
"--disable-password-generation",
|
120
124
|
"--disable-ipc-flooding-protection",
|
125
|
+
"--disable-background-timer-throttling",
|
121
126
|
"--disable-search-engine-choice-screen",
|
122
127
|
"--disable-backgrounding-occluded-windows",
|
123
128
|
"--disable-client-side-phishing-detection",
|
124
129
|
"--disable-top-sites",
|
130
|
+
"--disable-translate",
|
125
131
|
"--disable-renderer-backgrounding",
|
126
132
|
"--disable-background-networking",
|
127
133
|
"--disable-dev-shm-usage",
|
{seleniumbase-4.32.2 → seleniumbase-4.32.3}/seleniumbase/undetected/cdp_driver/connection.py
RENAMED
@@ -9,6 +9,7 @@ import sys
|
|
9
9
|
import types
|
10
10
|
from asyncio import iscoroutine, iscoroutinefunction
|
11
11
|
from typing import (
|
12
|
+
Optional,
|
12
13
|
Generator,
|
13
14
|
Union,
|
14
15
|
Awaitable,
|
@@ -336,6 +337,10 @@ class Connection(metaclass=CantTouchThis):
|
|
336
337
|
# No listener created yet.
|
337
338
|
pass
|
338
339
|
|
340
|
+
async def set_locale(self, locale: Optional[str] = None):
|
341
|
+
"""Sets the Language Locale code via set_user_agent_override."""
|
342
|
+
await self.send(cdp.network.set_user_agent_override("", locale))
|
343
|
+
|
339
344
|
def __getattr__(self, item):
|
340
345
|
""":meta private:"""
|
341
346
|
try:
|