seleniumbase 4.29.1__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 +21 -2
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.2.dist-info}/METADATA +1 -1
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.2.dist-info}/RECORD +8 -8
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.2.dist-info}/LICENSE +0 -0
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.2.dist-info}/WHEEL +0 -0
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.2.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.29.1.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)
|
@@ -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
|