seleniumbase 4.30.4__py3-none-any.whl → 4.30.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 +11 -35
- seleniumbase/fixtures/base_case.py +1 -0
- {seleniumbase-4.30.4.dist-info → seleniumbase-4.30.4a1.dist-info}/METADATA +1 -1
- {seleniumbase-4.30.4.dist-info → seleniumbase-4.30.4a1.dist-info}/RECORD +9 -9
- {seleniumbase-4.30.4.dist-info → seleniumbase-4.30.4a1.dist-info}/LICENSE +0 -0
- {seleniumbase-4.30.4.dist-info → seleniumbase-4.30.4a1.dist-info}/WHEEL +0 -0
- {seleniumbase-4.30.4.dist-info → seleniumbase-4.30.4a1.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.30.4.dist-info → seleniumbase-4.30.4a1.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.4a1"
|
@@ -610,6 +610,7 @@ 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}"
|
613
614
|
except Exception:
|
614
615
|
pass
|
615
616
|
|
@@ -728,23 +729,8 @@ def uc_gui_click_x_y(driver, x, y, timeframe=0.25):
|
|
728
729
|
install_pyautogui_if_missing(driver)
|
729
730
|
import pyautogui
|
730
731
|
pyautogui = get_configured_pyautogui(pyautogui)
|
731
|
-
connected = True
|
732
|
-
width_ratio = 1.0
|
733
732
|
if IS_WINDOWS:
|
734
|
-
|
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:
|
733
|
+
width_ratio = 1.0
|
748
734
|
window_rect = driver.get_window_rect()
|
749
735
|
width = window_rect["width"]
|
750
736
|
height = window_rect["height"]
|
@@ -766,24 +752,13 @@ def uc_gui_click_x_y(driver, x, y, timeframe=0.25):
|
|
766
752
|
sb_config._saved_width_ratio = width_ratio
|
767
753
|
driver.minimize_window()
|
768
754
|
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:
|
777
755
|
x = x * width_ratio
|
778
756
|
y = y * width_ratio
|
779
757
|
_uc_gui_click_x_y(driver, x, y, timeframe=timeframe, uc_lock=False)
|
780
758
|
return
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
)
|
785
|
-
except Exception:
|
786
|
-
pass
|
759
|
+
page_actions.switch_to_window(
|
760
|
+
driver, driver.current_window_handle, 2, uc_lock=False
|
761
|
+
)
|
787
762
|
_uc_gui_click_x_y(driver, x, y, timeframe=timeframe, uc_lock=False)
|
788
763
|
|
789
764
|
|
@@ -984,20 +959,21 @@ def _uc_gui_click_captcha(
|
|
984
959
|
pass
|
985
960
|
reconnect_time = (float(constants.UC.RECONNECT_TIME) / 2.0) + 0.5
|
986
961
|
if IS_LINUX:
|
987
|
-
reconnect_time = constants.UC.RECONNECT_TIME + 0.
|
962
|
+
reconnect_time = constants.UC.RECONNECT_TIME + 0.15
|
988
963
|
if not x or not y:
|
989
964
|
reconnect_time = 1 # Make it quick (it already failed)
|
990
965
|
driver.reconnect(reconnect_time)
|
991
|
-
if blind
|
966
|
+
if blind:
|
992
967
|
retry = True
|
993
|
-
blind = True
|
994
968
|
if retry and x and y and _on_a_captcha_page(driver):
|
995
969
|
with gui_lock: # Prevent issues with multiple processes
|
996
970
|
# Make sure the window is on top
|
997
971
|
page_actions.switch_to_window(
|
998
972
|
driver, driver.current_window_handle, 2, uc_lock=False
|
999
973
|
)
|
1000
|
-
if driver.is_element_present("iframe"):
|
974
|
+
if not driver.is_element_present("iframe"):
|
975
|
+
return
|
976
|
+
else:
|
1001
977
|
try:
|
1002
978
|
driver.switch_to_frame(frame)
|
1003
979
|
except Exception:
|
@@ -1204,7 +1180,7 @@ def _uc_gui_handle_captcha(
|
|
1204
1180
|
pass
|
1205
1181
|
reconnect_time = (float(constants.UC.RECONNECT_TIME) / 2.0) + 0.5
|
1206
1182
|
if IS_LINUX:
|
1207
|
-
reconnect_time = constants.UC.RECONNECT_TIME + 0.
|
1183
|
+
reconnect_time = constants.UC.RECONNECT_TIME + 0.15
|
1208
1184
|
driver.reconnect(reconnect_time)
|
1209
1185
|
|
1210
1186
|
|
@@ -13783,6 +13783,7 @@ 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}"
|
13786
13787
|
sb_config._virtual_display = self._xvfb_display
|
13787
13788
|
self.headless_active = True
|
13788
13789
|
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=k4OjfOV52Q_tO52KT_Vq-aWIoy96L_PtPInY1Nc7auE,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=Uoaea-C9P4bH9ZDv-lWmT7Zb7L8vzlc2J4cxZzsTT6U,198308
|
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=pP7qo1_aAjW9uON_z4WetmXtKFq8nL_TKzmRRuceaGY,702176
|
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.4a1.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
|
141
|
+
seleniumbase-4.30.4a1.dist-info/METADATA,sha256=sY3YLdjPxPLNBrBuWnuyPt2-03M6Z7vFxrnofarxAcE,86684
|
142
|
+
seleniumbase-4.30.4a1.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
143
|
+
seleniumbase-4.30.4a1.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
144
|
+
seleniumbase-4.30.4a1.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
145
|
+
seleniumbase-4.30.4a1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|