seleniumbase 4.28.4__py3-none-any.whl → 4.28.4a1__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 -42
- {seleniumbase-4.28.4.dist-info → seleniumbase-4.28.4a1.dist-info}/METADATA +1 -1
- {seleniumbase-4.28.4.dist-info → seleniumbase-4.28.4a1.dist-info}/RECORD +8 -8
- {seleniumbase-4.28.4.dist-info → seleniumbase-4.28.4a1.dist-info}/LICENSE +0 -0
- {seleniumbase-4.28.4.dist-info → seleniumbase-4.28.4a1.dist-info}/WHEEL +0 -0
- {seleniumbase-4.28.4.dist-info → seleniumbase-4.28.4a1.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.28.4.dist-info → seleniumbase-4.28.4a1.dist-info}/top_level.txt +0 -0
seleniumbase/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.28.
|
2
|
+
__version__ = "4.28.4a1"
|
@@ -660,7 +660,7 @@ def get_gui_element_position(driver, selector):
|
|
660
660
|
return (viewport_x, viewport_y)
|
661
661
|
|
662
662
|
|
663
|
-
def uc_gui_click_x_y(driver, x, y, timeframe=0.25
|
663
|
+
def uc_gui_click_x_y(driver, x, y, timeframe=0.25):
|
664
664
|
install_pyautogui_if_missing(driver)
|
665
665
|
import pyautogui
|
666
666
|
pyautogui = get_configured_pyautogui(pyautogui)
|
@@ -671,25 +671,12 @@ def uc_gui_click_x_y(driver, x, y, timeframe=0.25, uc_lock=True):
|
|
671
671
|
" outside screen. (Width: %s, Height: %s)"
|
672
672
|
% (x, y, screen_width, screen_height)
|
673
673
|
)
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
if timeframe >= 0.25:
|
681
|
-
time.sleep(0.0555) # Wait if moving at human-speed
|
682
|
-
if "--debug" in sys.argv:
|
683
|
-
print(" <DEBUG> pyautogui.click(%s, %s)" % (x, y))
|
684
|
-
pyautogui.click(x=x, y=y)
|
685
|
-
else:
|
686
|
-
# Called from a method where the gui_lock is already active
|
687
|
-
pyautogui.moveTo(x, y, timeframe, pyautogui.easeOutQuad)
|
688
|
-
if timeframe >= 0.25:
|
689
|
-
time.sleep(0.0555) # Wait if moving at human-speed
|
690
|
-
if "--debug" in sys.argv:
|
691
|
-
print(" <DEBUG> pyautogui.click(%s, %s)" % (x, y))
|
692
|
-
pyautogui.click(x=x, y=y)
|
674
|
+
pyautogui.moveTo(x, y, timeframe, pyautogui.easeOutQuad)
|
675
|
+
if timeframe >= 0.25:
|
676
|
+
time.sleep(0.0555) # Wait if moving at human-speed
|
677
|
+
if "--debug" in sys.argv:
|
678
|
+
print(" <DEBUG> pyautogui.click(%s, %s)" % (x, y))
|
679
|
+
pyautogui.click(x=x, y=y)
|
693
680
|
|
694
681
|
|
695
682
|
def on_a_cf_turnstile_page(driver):
|
@@ -738,7 +725,7 @@ def uc_gui_click_cf(driver, frame="iframe", retry=False, blind=False):
|
|
738
725
|
return
|
739
726
|
try:
|
740
727
|
selector = "span"
|
741
|
-
element = driver.wait_for_element_present(selector, timeout=2
|
728
|
+
element = driver.wait_for_element_present(selector, timeout=2)
|
742
729
|
x = i_x + element.rect["x"] + int(element.rect["width"] / 2) + 1
|
743
730
|
y = i_y + element.rect["y"] + int(element.rect["height"] / 2) + 1
|
744
731
|
driver.switch_to.default_content()
|
@@ -751,7 +738,7 @@ def uc_gui_click_cf(driver, frame="iframe", retry=False, blind=False):
|
|
751
738
|
try:
|
752
739
|
if x and y:
|
753
740
|
sb_config._saved_cf_x_y = (x, y)
|
754
|
-
uc_gui_click_x_y(driver, x, y, timeframe=0.842
|
741
|
+
uc_gui_click_x_y(driver, x, y, timeframe=0.842)
|
755
742
|
except Exception:
|
756
743
|
pass
|
757
744
|
reconnect_time = (float(constants.UC.RECONNECT_TIME) / 2.0) + 0.5
|
@@ -763,26 +750,20 @@ def uc_gui_click_cf(driver, frame="iframe", retry=False, blind=False):
|
|
763
750
|
if blind:
|
764
751
|
retry = True
|
765
752
|
if retry and x and y and on_a_cf_turnstile_page(driver):
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
driver.
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
driver.
|
780
|
-
if on_a_cf_turnstile_page(driver):
|
781
|
-
driver.disconnect()
|
782
|
-
uc_gui_click_x_y(
|
783
|
-
driver, x, y, timeframe=1.05, uc_lock=False
|
784
|
-
)
|
785
|
-
driver.reconnect(reconnect_time)
|
753
|
+
driver.switch_to_frame("iframe")
|
754
|
+
if driver.is_element_visible("#success-icon"):
|
755
|
+
driver.switch_to.parent_frame()
|
756
|
+
return
|
757
|
+
if blind:
|
758
|
+
driver.uc_open_with_disconnect(driver.current_url, 3.8)
|
759
|
+
uc_gui_click_x_y(driver, x, y, timeframe=1.05)
|
760
|
+
driver.reconnect(reconnect_time)
|
761
|
+
else:
|
762
|
+
driver.uc_open_with_reconnect(driver.current_url, 3.8)
|
763
|
+
if on_a_cf_turnstile_page(driver):
|
764
|
+
driver.disconnect()
|
765
|
+
uc_gui_click_x_y(driver, x, y, timeframe=1.05)
|
766
|
+
driver.reconnect(reconnect_time)
|
786
767
|
|
787
768
|
|
788
769
|
def uc_gui_handle_cf(driver, frame="iframe"):
|
@@ -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=LuplWFkCnURG8S5Ug851xWuiai-6wpOHdyGC1D8NYQU,48
|
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=hWxgwElRcGkrd70_T080Z9gPqrVypWn4UhXeoBSWq2s,181734
|
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.28.
|
141
|
-
seleniumbase-4.28.
|
142
|
-
seleniumbase-4.28.
|
143
|
-
seleniumbase-4.28.
|
144
|
-
seleniumbase-4.28.
|
145
|
-
seleniumbase-4.28.
|
140
|
+
seleniumbase-4.28.4a1.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
|
141
|
+
seleniumbase-4.28.4a1.dist-info/METADATA,sha256=ahzWYHH7Ma97Gr6ri4stnRZfA4voUMK5B0HI5VAXZsc,85548
|
142
|
+
seleniumbase-4.28.4a1.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
143
|
+
seleniumbase-4.28.4a1.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
144
|
+
seleniumbase-4.28.4a1.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
145
|
+
seleniumbase-4.28.4a1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|