seleniumbase 4.29.1__py3-none-any.whl → 4.29.3__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 +31 -2
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.3.dist-info}/METADATA +1 -1
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.3.dist-info}/RECORD +8 -8
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.3.dist-info}/LICENSE +0 -0
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.3.dist-info}/WHEEL +0 -0
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.3.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.29.1.dist-info → seleniumbase-4.29.3.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.3"
|
@@ -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,27 @@ 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 (
|
816
|
+
(
|
817
|
+
driver.is_element_present('[name*="cf-turnstile-"]')
|
818
|
+
or driver.is_element_present('[id*="cf-turnstile-"]')
|
819
|
+
)
|
820
|
+
and driver.is_element_present(
|
821
|
+
'form div div[style*="margin"][style*="padding"]'
|
822
|
+
)
|
823
|
+
):
|
824
|
+
frame = 'form div div[style*="margin"][style*="padding"]'
|
825
|
+
elif (
|
805
826
|
frame != "iframe"
|
806
827
|
and driver.is_element_present(
|
807
828
|
"%s .cf-turnstile-wrapper" % frame
|
@@ -981,6 +1002,11 @@ def uc_gui_handle_cf(driver, frame="iframe"):
|
|
981
1002
|
'[data-callback="onCaptchaSuccess"]'
|
982
1003
|
):
|
983
1004
|
frame = '[data-callback="onCaptchaSuccess"]'
|
1005
|
+
elif (
|
1006
|
+
driver.is_element_present('[name*="cf-turnstile-"]')
|
1007
|
+
and driver.is_element_present("div.spacer div[style]")
|
1008
|
+
):
|
1009
|
+
frame = "div.spacer div[style]"
|
984
1010
|
else:
|
985
1011
|
return
|
986
1012
|
if not is_in_frame or needs_switch:
|
@@ -1000,7 +1026,10 @@ def uc_gui_handle_cf(driver, frame="iframe"):
|
|
1000
1026
|
pyautogui.press("\t")
|
1001
1027
|
time.sleep(0.02)
|
1002
1028
|
active_element_css = js_utils.get_active_element_css(driver)
|
1003
|
-
if
|
1029
|
+
if (
|
1030
|
+
active_element_css.startswith("div.cf-turnstile")
|
1031
|
+
or active_element_css.startswith("div#PYMIw2")
|
1032
|
+
):
|
1004
1033
|
found_checkbox = True
|
1005
1034
|
break
|
1006
1035
|
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=ep2EsgwQOL8aLYzcRnMfVueJASZDJ0iCQLT794dbiNY,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=UI0XFnauZTzsk_yxED_V-4Wv-wuv3n49afDMZaDYmUk,190969
|
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.3.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
|
141
|
+
seleniumbase-4.29.3.dist-info/METADATA,sha256=D0kcRNQj2EZWgR9dUSeFCnc4yxAYgnrz6ag05pWaN10,85695
|
142
|
+
seleniumbase-4.29.3.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
143
|
+
seleniumbase-4.29.3.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
144
|
+
seleniumbase-4.29.3.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
145
|
+
seleniumbase-4.29.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|