seleniumbase 4.30.4a1__py3-none-any.whl → 4.30.4a2__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 +34 -10
- seleniumbase/fixtures/base_case.py +0 -1
- {seleniumbase-4.30.4a1.dist-info → seleniumbase-4.30.4a2.dist-info}/METADATA +1 -1
- {seleniumbase-4.30.4a1.dist-info → seleniumbase-4.30.4a2.dist-info}/RECORD +9 -9
- {seleniumbase-4.30.4a1.dist-info → seleniumbase-4.30.4a2.dist-info}/LICENSE +0 -0
- {seleniumbase-4.30.4a1.dist-info → seleniumbase-4.30.4a2.dist-info}/WHEEL +0 -0
- {seleniumbase-4.30.4a1.dist-info → seleniumbase-4.30.4a2.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.30.4a1.dist-info → seleniumbase-4.30.4a2.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.4a2"
|
@@ -610,7 +610,6 @@ def install_pyautogui_if_missing(driver):
|
|
610
610
|
use_xauth=True,
|
611
611
|
)
|
612
612
|
xvfb_display.start()
|
613
|
-
os.environ["DISPLAY"] = f":{xvfb_display.display}"
|
614
613
|
except Exception:
|
615
614
|
pass
|
616
615
|
|
@@ -729,8 +728,23 @@ def uc_gui_click_x_y(driver, x, y, timeframe=0.25):
|
|
729
728
|
install_pyautogui_if_missing(driver)
|
730
729
|
import pyautogui
|
731
730
|
pyautogui = get_configured_pyautogui(pyautogui)
|
731
|
+
connected = True
|
732
|
+
width_ratio = 1.0
|
732
733
|
if IS_WINDOWS:
|
733
|
-
|
734
|
+
try:
|
735
|
+
driver.window_handles
|
736
|
+
except Exception:
|
737
|
+
connected = False
|
738
|
+
if (
|
739
|
+
not connected
|
740
|
+
and (
|
741
|
+
not hasattr(sb_config, "_saved_width_ratio")
|
742
|
+
or not sb_config._saved_width_ratio
|
743
|
+
)
|
744
|
+
):
|
745
|
+
driver.reconnect(0.1)
|
746
|
+
connected = True
|
747
|
+
if IS_WINDOWS and connected:
|
734
748
|
window_rect = driver.get_window_rect()
|
735
749
|
width = window_rect["width"]
|
736
750
|
height = window_rect["height"]
|
@@ -752,13 +766,24 @@ def uc_gui_click_x_y(driver, x, y, timeframe=0.25):
|
|
752
766
|
sb_config._saved_width_ratio = width_ratio
|
753
767
|
driver.minimize_window()
|
754
768
|
driver.set_window_rect(win_x, win_y, width, height)
|
769
|
+
elif (
|
770
|
+
IS_WINDOWS
|
771
|
+
and not connected
|
772
|
+
and hasattr(sb_config, "_saved_width_ratio")
|
773
|
+
and sb_config._saved_width_ratio
|
774
|
+
):
|
775
|
+
width_ratio = sb_config._saved_width_ratio
|
776
|
+
if IS_WINDOWS:
|
755
777
|
x = x * width_ratio
|
756
778
|
y = y * width_ratio
|
757
779
|
_uc_gui_click_x_y(driver, x, y, timeframe=timeframe, uc_lock=False)
|
758
780
|
return
|
759
|
-
|
760
|
-
|
761
|
-
|
781
|
+
try:
|
782
|
+
page_actions.switch_to_window(
|
783
|
+
driver, driver.current_window_handle, 2, uc_lock=False
|
784
|
+
)
|
785
|
+
except Exception:
|
786
|
+
pass
|
762
787
|
_uc_gui_click_x_y(driver, x, y, timeframe=timeframe, uc_lock=False)
|
763
788
|
|
764
789
|
|
@@ -959,21 +984,20 @@ def _uc_gui_click_captcha(
|
|
959
984
|
pass
|
960
985
|
reconnect_time = (float(constants.UC.RECONNECT_TIME) / 2.0) + 0.5
|
961
986
|
if IS_LINUX:
|
962
|
-
reconnect_time = constants.UC.RECONNECT_TIME + 0.
|
987
|
+
reconnect_time = constants.UC.RECONNECT_TIME + 0.25
|
963
988
|
if not x or not y:
|
964
989
|
reconnect_time = 1 # Make it quick (it already failed)
|
965
990
|
driver.reconnect(reconnect_time)
|
966
|
-
if blind:
|
991
|
+
if blind or (IS_LINUX and "Just a moment" in driver.get_page_title()):
|
967
992
|
retry = True
|
993
|
+
blind = True
|
968
994
|
if retry and x and y and _on_a_captcha_page(driver):
|
969
995
|
with gui_lock: # Prevent issues with multiple processes
|
970
996
|
# Make sure the window is on top
|
971
997
|
page_actions.switch_to_window(
|
972
998
|
driver, driver.current_window_handle, 2, uc_lock=False
|
973
999
|
)
|
974
|
-
if
|
975
|
-
return
|
976
|
-
else:
|
1000
|
+
if driver.is_element_present("iframe"):
|
977
1001
|
try:
|
978
1002
|
driver.switch_to_frame(frame)
|
979
1003
|
except Exception:
|
@@ -13783,7 +13783,6 @@ class BaseCase(unittest.TestCase):
|
|
13783
13783
|
visible=0, size=(width, height)
|
13784
13784
|
)
|
13785
13785
|
self._xvfb_display.start()
|
13786
|
-
os.environ["DISPLAY"] = f":{self._xvfb_display.display}"
|
13787
13786
|
sb_config._virtual_display = self._xvfb_display
|
13788
13787
|
self.headless_active = True
|
13789
13788
|
sb_config.headless_active = True
|
@@ -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=UTcszmg7rTvKu8QAPWB332SFGMmEGg7ZEZMDFFhoQKw,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=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=8D1oBipXo89FAiQtlfHBKjXN_KsrSPQBsFVmTY2iEi4,199068
|
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
|
@@ -70,7 +70,7 @@ seleniumbase/extensions/disable_csp.zip,sha256=YMifIIgEBiLrEFrS1sfW4Exh4br1V4oK1
|
|
70
70
|
seleniumbase/extensions/recorder.zip,sha256=OOyzF-Ize2cSRu1CqhzSAq5vusI9hqLLd2OIApUHesI,11918
|
71
71
|
seleniumbase/extensions/sbase_ext.zip,sha256=3s1N8zrVaMz8RQEOIoBzC3KDjtmHwVZRvVsX25Odr_s,8175
|
72
72
|
seleniumbase/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
73
|
-
seleniumbase/fixtures/base_case.py,sha256=
|
73
|
+
seleniumbase/fixtures/base_case.py,sha256=y-GeD6E8SM-mY_fc3QDbxbZFX-K7CBDVssDYBr4wYzY,702107
|
74
74
|
seleniumbase/fixtures/constants.py,sha256=TapuGLdERtvZPGMblVXkNGybr8tj8FMtN3sbJ3ygyoc,13569
|
75
75
|
seleniumbase/fixtures/css_to_xpath.py,sha256=9ouDB1xl4MJ2os6JOgTIAyHKOQfuxtxvXC3O5hSnEKA,1954
|
76
76
|
seleniumbase/fixtures/errors.py,sha256=KyxuEVx_e3MPhVrJfNIa_3ltMpbCFxfy_jxK8RFNTns,555
|
@@ -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.4a2.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
|
141
|
+
seleniumbase-4.30.4a2.dist-info/METADATA,sha256=0MWa_Uz8v3CZq8_rzyU3qfW2nLRCfGz3Argslv8RSaI,86684
|
142
|
+
seleniumbase-4.30.4a2.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
143
|
+
seleniumbase-4.30.4a2.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
144
|
+
seleniumbase-4.30.4a2.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
145
|
+
seleniumbase-4.30.4a2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|