seleniumbase 4.30.6a3__py3-none-any.whl → 4.30.8__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- seleniumbase/__version__.py +1 -1
- seleniumbase/core/browser_launcher.py +35 -13
- {seleniumbase-4.30.6a3.dist-info → seleniumbase-4.30.8.dist-info}/METADATA +1 -1
- {seleniumbase-4.30.6a3.dist-info → seleniumbase-4.30.8.dist-info}/RECORD +8 -8
- {seleniumbase-4.30.6a3.dist-info → seleniumbase-4.30.8.dist-info}/LICENSE +0 -0
- {seleniumbase-4.30.6a3.dist-info → seleniumbase-4.30.8.dist-info}/WHEEL +0 -0
- {seleniumbase-4.30.6a3.dist-info → seleniumbase-4.30.8.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.30.6a3.dist-info → seleniumbase-4.30.8.dist-info}/top_level.txt +0 -0
seleniumbase/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.30.
|
2
|
+
__version__ = "4.30.8"
|
@@ -900,6 +900,11 @@ def _uc_gui_click_captcha(
|
|
900
900
|
and driver.is_element_present("%s div" % frame)
|
901
901
|
):
|
902
902
|
frame = "%s div" % frame
|
903
|
+
elif (
|
904
|
+
driver.is_element_present('[name*="cf-turnstile-"]')
|
905
|
+
and driver.is_element_present('[class*=spacer] + div div')
|
906
|
+
):
|
907
|
+
frame = '[class*=spacer] + div div'
|
903
908
|
elif (
|
904
909
|
driver.is_element_present('[name*="cf-turnstile-"]')
|
905
910
|
and driver.is_element_present("div.spacer div")
|
@@ -975,13 +980,16 @@ def _uc_gui_click_captcha(
|
|
975
980
|
driver.switch_to.default_content()
|
976
981
|
except Exception:
|
977
982
|
return
|
978
|
-
|
979
|
-
|
980
|
-
if
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
983
|
+
if x and y:
|
984
|
+
sb_config._saved_cf_x_y = (x, y)
|
985
|
+
if driver.is_element_present(".footer .clearfix .ray-id"):
|
986
|
+
driver.uc_open_with_disconnect(driver.current_url, 3.8)
|
987
|
+
else:
|
988
|
+
driver.disconnect()
|
989
|
+
try:
|
990
|
+
_uc_gui_click_x_y(driver, x, y, timeframe=0.54321)
|
991
|
+
except Exception:
|
992
|
+
pass
|
985
993
|
reconnect_time = (float(constants.UC.RECONNECT_TIME) / 2.0) + 0.6
|
986
994
|
if IS_LINUX:
|
987
995
|
reconnect_time = constants.UC.RECONNECT_TIME + 0.2
|
@@ -991,7 +999,7 @@ def _uc_gui_click_captcha(
|
|
991
999
|
caught = False
|
992
1000
|
if (
|
993
1001
|
driver.is_element_present(".footer .clearfix .ray-id")
|
994
|
-
and not driver.
|
1002
|
+
and not driver.is_element_visible("#challenge-success-text")
|
995
1003
|
):
|
996
1004
|
blind = True
|
997
1005
|
caught = True
|
@@ -1180,8 +1188,10 @@ def _uc_gui_handle_captcha_(driver, frame="iframe", ctype=None):
|
|
1180
1188
|
for i in range(10):
|
1181
1189
|
pyautogui.hotkey("shift", "tab")
|
1182
1190
|
time.sleep(0.027)
|
1191
|
+
tab_count = 0
|
1183
1192
|
for i in range(34):
|
1184
1193
|
pyautogui.press("\t")
|
1194
|
+
tab_count += 1
|
1185
1195
|
time.sleep(0.027)
|
1186
1196
|
active_element_css = js_utils.get_active_element_css(driver)
|
1187
1197
|
if (
|
@@ -1190,6 +1200,7 @@ def _uc_gui_handle_captcha_(driver, frame="iframe", ctype=None):
|
|
1190
1200
|
or (special_form and active_element_css.endswith(" div"))
|
1191
1201
|
):
|
1192
1202
|
found_checkbox = True
|
1203
|
+
sb_config._saved_cf_tab_count = tab_count
|
1193
1204
|
break
|
1194
1205
|
time.sleep(0.02)
|
1195
1206
|
if not found_checkbox:
|
@@ -1199,11 +1210,22 @@ def _uc_gui_handle_captcha_(driver, frame="iframe", ctype=None):
|
|
1199
1210
|
driver.switch_to.default_content()
|
1200
1211
|
except Exception:
|
1201
1212
|
return
|
1202
|
-
|
1203
|
-
|
1213
|
+
if (
|
1214
|
+
driver.is_element_present(".footer .clearfix .ray-id")
|
1215
|
+
and hasattr(sb_config, "_saved_cf_tab_count")
|
1216
|
+
and sb_config._saved_cf_tab_count
|
1217
|
+
):
|
1218
|
+
driver.uc_open_with_disconnect(driver.current_url, 3.8)
|
1219
|
+
try:
|
1220
|
+
for i in range(sb_config._saved_cf_tab_count):
|
1221
|
+
pyautogui.press("\t")
|
1222
|
+
time.sleep(0.027)
|
1223
|
+
pyautogui.press(" ")
|
1224
|
+
except Exception:
|
1225
|
+
pass
|
1226
|
+
else:
|
1227
|
+
driver.disconnect()
|
1204
1228
|
pyautogui.press(" ")
|
1205
|
-
except Exception:
|
1206
|
-
pass
|
1207
1229
|
reconnect_time = (float(constants.UC.RECONNECT_TIME) / 2.0) + 0.6
|
1208
1230
|
if IS_LINUX:
|
1209
1231
|
reconnect_time = constants.UC.RECONNECT_TIME + 0.2
|
@@ -1214,7 +1236,7 @@ def _uc_gui_handle_captcha(driver, frame="iframe", ctype=None):
|
|
1214
1236
|
_uc_gui_handle_captcha_(driver, frame=frame, ctype=ctype)
|
1215
1237
|
if (
|
1216
1238
|
driver.is_element_present(".footer .clearfix .ray-id")
|
1217
|
-
and not driver.
|
1239
|
+
and not driver.is_element_visible("#challenge-success-text")
|
1218
1240
|
):
|
1219
1241
|
driver.uc_open_with_reconnect(driver.current_url, 3.8)
|
1220
1242
|
_uc_gui_handle_captcha_(driver, frame=frame, ctype=ctype)
|
@@ -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=rlzZLfE73I_642pw7EWStQj7VqH17H1avL8qhR88qwk,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=Yd4CRZegyl5esBoJN-DLygPt0AecwyRlDZtX7mmh9vs,57007
|
@@ -40,7 +40,7 @@ seleniumbase/console_scripts/sb_print.py,sha256=yo641b_OdSE0GUauOyxk-QrNeIjYzbRY
|
|
40
40
|
seleniumbase/console_scripts/sb_recorder.py,sha256=9rLgxq_K2g37zpEPYtQ8j01u2fGkZpacw3Xi6o_ENWc,11162
|
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=2AbA7FhWRJTu7WF80ogPk7x_IGHnc6oQSNm7oVrLZJE,200615
|
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.30.
|
141
|
-
seleniumbase-4.30.
|
142
|
-
seleniumbase-4.30.
|
143
|
-
seleniumbase-4.30.
|
144
|
-
seleniumbase-4.30.
|
145
|
-
seleniumbase-4.30.
|
140
|
+
seleniumbase-4.30.8.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
|
141
|
+
seleniumbase-4.30.8.dist-info/METADATA,sha256=FTgBLVlh9d_LCMitkgu6sjnd2pHTEEwdDElecC6Ueks,86759
|
142
|
+
seleniumbase-4.30.8.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
143
|
+
seleniumbase-4.30.8.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
144
|
+
seleniumbase-4.30.8.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
145
|
+
seleniumbase-4.30.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|