seleniumbase 4.29.0__py3-none-any.whl → 4.29.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- seleniumbase/__version__.py +1 -1
- seleniumbase/core/browser_launcher.py +23 -2
- {seleniumbase-4.29.0.dist-info → seleniumbase-4.29.2.dist-info}/METADATA +2 -2
- {seleniumbase-4.29.0.dist-info → seleniumbase-4.29.2.dist-info}/RECORD +8 -8
- {seleniumbase-4.29.0.dist-info → seleniumbase-4.29.2.dist-info}/LICENSE +0 -0
- {seleniumbase-4.29.0.dist-info → seleniumbase-4.29.2.dist-info}/WHEEL +0 -0
- {seleniumbase-4.29.0.dist-info → seleniumbase-4.29.2.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.29.0.dist-info → seleniumbase-4.29.2.dist-info}/top_level.txt +0 -0
seleniumbase/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.29.
|
2
|
+
__version__ = "4.29.2"
|
@@ -725,7 +725,7 @@ def _on_a_cf_turnstile_page(driver):
|
|
725
725
|
source = driver.get_page_source()
|
726
726
|
if (
|
727
727
|
'data-callback="onCaptchaSuccess"' in source
|
728
|
-
or "cf-turnstile-
|
728
|
+
or "cf-turnstile-" in source
|
729
729
|
):
|
730
730
|
return True
|
731
731
|
return False
|
@@ -802,6 +802,17 @@ def _uc_gui_click_captcha(
|
|
802
802
|
else:
|
803
803
|
visible_iframe = False
|
804
804
|
if (
|
805
|
+
frame != "iframe"
|
806
|
+
and driver.is_element_present('[name*="cf-turnstile-"]')
|
807
|
+
and driver.is_element_present("%s div[style]" % frame)
|
808
|
+
):
|
809
|
+
frame = "%s div[style]" % frame
|
810
|
+
elif (
|
811
|
+
driver.is_element_present('[name*="cf-turnstile-"]')
|
812
|
+
and driver.is_element_present("div.spacer div[style]")
|
813
|
+
):
|
814
|
+
frame = "div.spacer div[style]"
|
815
|
+
elif (
|
805
816
|
frame != "iframe"
|
806
817
|
and driver.is_element_present(
|
807
818
|
"%s .cf-turnstile-wrapper" % frame
|
@@ -981,6 +992,11 @@ def uc_gui_handle_cf(driver, frame="iframe"):
|
|
981
992
|
'[data-callback="onCaptchaSuccess"]'
|
982
993
|
):
|
983
994
|
frame = '[data-callback="onCaptchaSuccess"]'
|
995
|
+
elif (
|
996
|
+
driver.is_element_present('[name*="cf-turnstile-"]')
|
997
|
+
and driver.is_element_present("div.spacer div[style]")
|
998
|
+
):
|
999
|
+
frame = "div.spacer div[style]"
|
984
1000
|
else:
|
985
1001
|
return
|
986
1002
|
if not is_in_frame or needs_switch:
|
@@ -1000,7 +1016,10 @@ def uc_gui_handle_cf(driver, frame="iframe"):
|
|
1000
1016
|
pyautogui.press("\t")
|
1001
1017
|
time.sleep(0.02)
|
1002
1018
|
active_element_css = js_utils.get_active_element_css(driver)
|
1003
|
-
if
|
1019
|
+
if (
|
1020
|
+
active_element_css == "div.cf-turnstile-wrapper"
|
1021
|
+
or active_element_css.startswith("div#PYMIw2")
|
1022
|
+
):
|
1004
1023
|
found_checkbox = True
|
1005
1024
|
break
|
1006
1025
|
time.sleep(0.02)
|
@@ -1659,6 +1678,7 @@ def _set_chrome_options(
|
|
1659
1678
|
if user_agent:
|
1660
1679
|
chrome_options.add_argument("--user-agent=%s" % user_agent)
|
1661
1680
|
chrome_options.add_argument("--safebrowsing-disable-download-protection")
|
1681
|
+
chrome_options.add_argument("--disable-search-engine-choice-screen")
|
1662
1682
|
chrome_options.add_argument("--disable-browser-side-navigation")
|
1663
1683
|
chrome_options.add_argument("--disable-save-password-bubble")
|
1664
1684
|
chrome_options.add_argument("--disable-single-click-autofill")
|
@@ -3221,6 +3241,7 @@ def get_local_driver(
|
|
3221
3241
|
"--disable-autofill-keyboard-accessory-view[8]"
|
3222
3242
|
)
|
3223
3243
|
edge_options.add_argument("--safebrowsing-disable-download-protection")
|
3244
|
+
edge_options.add_argument("--disable-search-engine-choice-screen")
|
3224
3245
|
edge_options.add_argument("--disable-browser-side-navigation")
|
3225
3246
|
edge_options.add_argument("--disable-translate")
|
3226
3247
|
if not enable_ws:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: seleniumbase
|
3
|
-
Version: 4.29.
|
3
|
+
Version: 4.29.2
|
4
4
|
Summary: A complete web automation framework for end-to-end testing.
|
5
5
|
Home-page: https://github.com/seleniumbase/SeleniumBase
|
6
6
|
Author: Michael Mintz
|
@@ -125,7 +125,7 @@ Requires-Dist: websocket-client ==1.8.0 ; python_version >= "3.8"
|
|
125
125
|
Requires-Dist: selenium ==4.23.1 ; python_version >= "3.8"
|
126
126
|
Requires-Dist: execnet ==2.1.1 ; python_version >= "3.8"
|
127
127
|
Requires-Dist: pluggy ==1.5.0 ; python_version >= "3.8"
|
128
|
-
Requires-Dist: pytest ==8.3.
|
128
|
+
Requires-Dist: pytest ==8.3.2 ; python_version >= "3.8"
|
129
129
|
Requires-Dist: pytest-metadata ==3.1.1 ; python_version >= "3.8"
|
130
130
|
Requires-Dist: pytest-rerunfailures ==14.0 ; python_version >= "3.8"
|
131
131
|
Requires-Dist: pytest-xdist ==3.6.1 ; python_version >= "3.8"
|
@@ -5,7 +5,7 @@ sbase/steps.py,sha256=bKT_u5bJkKzYWEuAXi9NVVRYYxQRCM1_YJUrNFFRVPY,42865
|
|
5
5
|
seleniumbase/ReadMe.md,sha256=4nEdto4d0Ch0Zneg0yAC-RBBdqRqPUP0SCo-ze_XDPM,3612
|
6
6
|
seleniumbase/__init__.py,sha256=dgq30q6wGO2fJOVYemxC5hLxzv-of-MRn5P1YarBq5k,2263
|
7
7
|
seleniumbase/__main__.py,sha256=dn1p6dgCchmcH1zzTzzQvFwwdQQqnTGH6ULV9m4hv24,654
|
8
|
-
seleniumbase/__version__.py,sha256=
|
8
|
+
seleniumbase/__version__.py,sha256=KbPys2S4k1tevCAbZg0aEZeO2wzxsBhH6ngeq3PZ6F0,46
|
9
9
|
seleniumbase/behave/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
seleniumbase/behave/behave_helper.py,sha256=elkl8P9eLulRAioLstE9baYNM9N_PHBmAOcajX-pH_Y,24198
|
11
11
|
seleniumbase/behave/behave_sb.py,sha256=q4uYZixZBf7VYWnQnEk2weTcyMy1X1faR3vyYvUzDiA,56406
|
@@ -40,7 +40,7 @@ seleniumbase/console_scripts/sb_print.py,sha256=yo641b_OdSE0GUauOyxk-QrNeIjYzbRY
|
|
40
40
|
seleniumbase/console_scripts/sb_recorder.py,sha256=UQQhnAR18dbcC7ToDvj6TM2PIG5qBrNaekaM6kSK_E8,10970
|
41
41
|
seleniumbase/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
42
42
|
seleniumbase/core/application_manager.py,sha256=e_0sjtI8cjY5BNyZj1QBR0j6_oCScxGmSXYEpcYwuZE,576
|
43
|
-
seleniumbase/core/browser_launcher.py,sha256=
|
43
|
+
seleniumbase/core/browser_launcher.py,sha256=9jHKwRoXUuZ0Xz4bfgOouqNWuUExuaDiWnJ1O5ixUvc,190502
|
44
44
|
seleniumbase/core/capabilities_parser.py,sha256=meIS2uHapTCq2ldfNAToC7r0cKmZDRXuYNKExM1GHDY,6038
|
45
45
|
seleniumbase/core/colored_traceback.py,sha256=DrRWfg7XEnKcgY59Xj7Jdk09H-XqHYBSUpB-DiZt6iY,2020
|
46
46
|
seleniumbase/core/create_db_tables.sql,sha256=VWPtrdiW_HQ6yETHjqTu-VIrTwvd8I8o1NfBeaVSHpU,972
|
@@ -137,9 +137,9 @@ seleniumbase/utilities/selenium_grid/start-grid-hub.sh,sha256=KADv0RUHONLL2_I443
|
|
137
137
|
seleniumbase/utilities/selenium_ide/ReadMe.md,sha256=hznGeuMpkIimqMiZBW-4goIy2ltW4l8X9kb0YSPUQfE,4483
|
138
138
|
seleniumbase/utilities/selenium_ide/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
139
139
|
seleniumbase/utilities/selenium_ide/convert_ide.py,sha256=pZFnqEJQEKZPyNFjkLD29s2HPQgCrWW9XJWpCPhWOoM,31691
|
140
|
-
seleniumbase-4.29.
|
141
|
-
seleniumbase-4.29.
|
142
|
-
seleniumbase-4.29.
|
143
|
-
seleniumbase-4.29.
|
144
|
-
seleniumbase-4.29.
|
145
|
-
seleniumbase-4.29.
|
140
|
+
seleniumbase-4.29.2.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
|
141
|
+
seleniumbase-4.29.2.dist-info/METADATA,sha256=_uY3zC6Ha8CTiuG_5d7OCkWAj5CZs4Smg4_M0Kd8A84,85695
|
142
|
+
seleniumbase-4.29.2.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
143
|
+
seleniumbase-4.29.2.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
144
|
+
seleniumbase-4.29.2.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
145
|
+
seleniumbase-4.29.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|