seleniumbase 4.32.10a1__py3-none-any.whl → 4.32.10a3__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 +10 -4
- seleniumbase/core/sb_cdp.py +8 -3
- seleniumbase/fixtures/base_case.py +1 -1
- {seleniumbase-4.32.10a1.dist-info → seleniumbase-4.32.10a3.dist-info}/METADATA +1 -1
- {seleniumbase-4.32.10a1.dist-info → seleniumbase-4.32.10a3.dist-info}/RECORD +10 -10
- {seleniumbase-4.32.10a1.dist-info → seleniumbase-4.32.10a3.dist-info}/LICENSE +0 -0
- {seleniumbase-4.32.10a1.dist-info → seleniumbase-4.32.10a3.dist-info}/WHEEL +0 -0
- {seleniumbase-4.32.10a1.dist-info → seleniumbase-4.32.10a3.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.32.10a1.dist-info → seleniumbase-4.32.10a3.dist-info}/top_level.txt +0 -0
seleniumbase/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.32.
|
2
|
+
__version__ = "4.32.10a3"
|
@@ -571,6 +571,7 @@ def uc_open_with_cdp_mode(driver, url=None):
|
|
571
571
|
loop.run_until_complete(driver.cdp_base.update_targets())
|
572
572
|
page = loop.run_until_complete(driver.cdp_base.get(url))
|
573
573
|
loop.run_until_complete(page.activate())
|
574
|
+
loop.run_until_complete(page.wait())
|
574
575
|
if not safe_url:
|
575
576
|
time.sleep(constants.UC.CDP_MODE_OPEN_WAIT)
|
576
577
|
cdp = types.SimpleNamespace()
|
@@ -1244,12 +1245,17 @@ def _uc_gui_click_captcha(
|
|
1244
1245
|
return
|
1245
1246
|
if x and y:
|
1246
1247
|
sb_config._saved_cf_x_y = (x, y)
|
1247
|
-
if driver
|
1248
|
-
driver.
|
1249
|
-
|
1250
|
-
|
1248
|
+
if not __is_cdp_swap_needed(driver):
|
1249
|
+
if driver.is_element_present(".footer .clearfix .ray-id"):
|
1250
|
+
driver.uc_open_with_disconnect(
|
1251
|
+
driver.get_current_url(), 3.8
|
1252
|
+
)
|
1253
|
+
else:
|
1254
|
+
driver.disconnect()
|
1251
1255
|
with suppress(Exception):
|
1252
1256
|
_uc_gui_click_x_y(driver, x, y, timeframe=0.32)
|
1257
|
+
if __is_cdp_swap_needed(driver):
|
1258
|
+
return
|
1253
1259
|
reconnect_time = (float(constants.UC.RECONNECT_TIME) / 2.0) + 0.6
|
1254
1260
|
if IS_LINUX:
|
1255
1261
|
reconnect_time = constants.UC.RECONNECT_TIME + 0.2
|
seleniumbase/core/sb_cdp.py
CHANGED
@@ -188,7 +188,10 @@ class CDPMethods():
|
|
188
188
|
)
|
189
189
|
updated_elements = []
|
190
190
|
for element in elements:
|
191
|
-
if
|
191
|
+
if (
|
192
|
+
not tag_name
|
193
|
+
or tag_name.lower().strip() in element.tag_name.lower().strip()
|
194
|
+
):
|
192
195
|
element = self.__add_sync_methods(element)
|
193
196
|
updated_elements.append(element)
|
194
197
|
self.__slow_mode_pause_if_set()
|
@@ -435,6 +438,7 @@ class CDPMethods():
|
|
435
438
|
|
436
439
|
def bring_active_window_to_front(self):
|
437
440
|
self.loop.run_until_complete(self.page.bring_to_front())
|
441
|
+
self.__add_light_pause()
|
438
442
|
|
439
443
|
def get_active_element(self):
|
440
444
|
return self.loop.run_until_complete(
|
@@ -538,7 +542,6 @@ class CDPMethods():
|
|
538
542
|
"""Highlight an element with multi-colors."""
|
539
543
|
selector = self.__convert_to_css_if_xpath(selector)
|
540
544
|
element = self.find_element(selector)
|
541
|
-
element = self.find_element(selector)
|
542
545
|
element.flash(0.46, "44CC88")
|
543
546
|
time.sleep(0.15)
|
544
547
|
element.flash(0.42, "8844CC")
|
@@ -839,8 +842,10 @@ class CDPMethods():
|
|
839
842
|
coordinates["y"] = y if y else 0
|
840
843
|
return coordinates
|
841
844
|
|
842
|
-
def get_element_rect(self, selector):
|
845
|
+
def get_element_rect(self, selector, timeout=settings.SMALL_TIMEOUT):
|
843
846
|
selector = self.__convert_to_css_if_xpath(selector)
|
847
|
+
self.select(selector, timeout=timeout)
|
848
|
+
self.__add_light_pause()
|
844
849
|
coordinates = self.loop.run_until_complete(
|
845
850
|
self.page.js_dumps(
|
846
851
|
"""document.querySelector"""
|
@@ -5974,7 +5974,7 @@ class BaseCase(unittest.TestCase):
|
|
5974
5974
|
scroll - the option to scroll to the element first (Default: True)
|
5975
5975
|
timeout - the time to wait for the element to appear """
|
5976
5976
|
self.__check_scope()
|
5977
|
-
if self.__is_cdp_swap_needed():
|
5977
|
+
if self.__is_cdp_swap_needed() and ":contains(" not in selector:
|
5978
5978
|
self.cdp.highlight(selector)
|
5979
5979
|
return
|
5980
5980
|
self._check_browser()
|
@@ -3,7 +3,7 @@ sbase/__main__.py,sha256=G0bVB1-DM4PGwQ1KyOupaWCs4ePbChZNNWuX2htim5U,647
|
|
3
3
|
sbase/steps.py,sha256=bKT_u5bJkKzYWEuAXi9NVVRYYxQRCM1_YJUrNFFRVPY,42865
|
4
4
|
seleniumbase/__init__.py,sha256=OtJh8nGKL4xtZpw8KPqmn7Q6R-86t4cWUDyVF5MbMTo,2398
|
5
5
|
seleniumbase/__main__.py,sha256=dn1p6dgCchmcH1zzTzzQvFwwdQQqnTGH6ULV9m4hv24,654
|
6
|
-
seleniumbase/__version__.py,sha256=
|
6
|
+
seleniumbase/__version__.py,sha256=14fllQeteOT_Suz0vgP14dq-Lmrkoig_p-X-_kTOUzg,49
|
7
7
|
seleniumbase/behave/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
seleniumbase/behave/behave_helper.py,sha256=elkl8P9eLulRAioLstE9baYNM9N_PHBmAOcajX-pH_Y,24198
|
9
9
|
seleniumbase/behave/behave_sb.py,sha256=-hza7Nx2U41mSObYiPMi48v3JlPh3sJO3yzP0kqZ1Gk,59174
|
@@ -36,7 +36,7 @@ seleniumbase/console_scripts/sb_print.py,sha256=tNy-bMDgwHJO3bZxMpmo9weSE8uhbH0C
|
|
36
36
|
seleniumbase/console_scripts/sb_recorder.py,sha256=1oAA4wFzVboNhIFDwJLD3jgy9RuoavywKQG7R67bNZE,10908
|
37
37
|
seleniumbase/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
38
|
seleniumbase/core/application_manager.py,sha256=e_0sjtI8cjY5BNyZj1QBR0j6_oCScxGmSXYEpcYwuZE,576
|
39
|
-
seleniumbase/core/browser_launcher.py,sha256=
|
39
|
+
seleniumbase/core/browser_launcher.py,sha256=spXqxLljEovT48O0zbKWuTfG1OS4y9VjYKI8pufQIkk,219268
|
40
40
|
seleniumbase/core/capabilities_parser.py,sha256=meIS2uHapTCq2ldfNAToC7r0cKmZDRXuYNKExM1GHDY,6038
|
41
41
|
seleniumbase/core/colored_traceback.py,sha256=DrRWfg7XEnKcgY59Xj7Jdk09H-XqHYBSUpB-DiZt6iY,2020
|
42
42
|
seleniumbase/core/create_db_tables.sql,sha256=VWPtrdiW_HQ6yETHjqTu-VIrTwvd8I8o1NfBeaVSHpU,972
|
@@ -50,7 +50,7 @@ seleniumbase/core/proxy_helper.py,sha256=cXhu8ErK9Vjdm82RMaQj7hEq_yUWizSp6LyiD50
|
|
50
50
|
seleniumbase/core/recorder_helper.py,sha256=fNGjbapXmEsht54x1o6Igk198QdnPxDDnjUOzQxNhNQ,25055
|
51
51
|
seleniumbase/core/report_helper.py,sha256=AIl6Qava2yW1uSzbLpJBlPlYDz0KE-rVhogh8hsGWBo,12201
|
52
52
|
seleniumbase/core/s3_manager.py,sha256=bkeI8I4y19ebWuQG1oEZV5qJbotC6eN8vin31OCNWJk,3521
|
53
|
-
seleniumbase/core/sb_cdp.py,sha256=
|
53
|
+
seleniumbase/core/sb_cdp.py,sha256=CPQvyJ8v_xozVdGt5g9JFjo0aYsLaOEm9gnthpysrOc,59586
|
54
54
|
seleniumbase/core/sb_driver.py,sha256=Yd9BpjnOUuZqYRGmsERVKc1W-e8qwTt7SAytLatkXPA,12070
|
55
55
|
seleniumbase/core/session_helper.py,sha256=s9zD3PVZEWVzG2h81cCUskbNWLfdjC_LwwQjKptHCak,558
|
56
56
|
seleniumbase/core/settings_parser.py,sha256=KokVXpCiGZhJ-D4Bo-hizPz5r-iefzWoiTANu9zNaq4,7504
|
@@ -65,7 +65,7 @@ seleniumbase/extensions/disable_csp.zip,sha256=YMifIIgEBiLrEFrS1sfW4Exh4br1V4oK1
|
|
65
65
|
seleniumbase/extensions/recorder.zip,sha256=OOyzF-Ize2cSRu1CqhzSAq5vusI9hqLLd2OIApUHesI,11918
|
66
66
|
seleniumbase/extensions/sbase_ext.zip,sha256=3s1N8zrVaMz8RQEOIoBzC3KDjtmHwVZRvVsX25Odr_s,8175
|
67
67
|
seleniumbase/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
68
|
-
seleniumbase/fixtures/base_case.py,sha256=
|
68
|
+
seleniumbase/fixtures/base_case.py,sha256=ad--jkCZk2CTzXXk4_ncrI8nqWgHhGPjVmS3vHhnplQ,712849
|
69
69
|
seleniumbase/fixtures/constants.py,sha256=XYYMpB-ZDI756LvfhSK9RxdqQ_qO9fJVXgBqBYlQNkk,13609
|
70
70
|
seleniumbase/fixtures/css_to_xpath.py,sha256=9ouDB1xl4MJ2os6JOgTIAyHKOQfuxtxvXC3O5hSnEKA,1954
|
71
71
|
seleniumbase/fixtures/errors.py,sha256=KyxuEVx_e3MPhVrJfNIa_3ltMpbCFxfy_jxK8RFNTns,555
|
@@ -135,9 +135,9 @@ seleniumbase/utilities/selenium_grid/start-grid-hub.bat,sha256=Ftq-GrAKRYH2ssDPr
|
|
135
135
|
seleniumbase/utilities/selenium_grid/start-grid-hub.sh,sha256=KADv0RUHONLL2_I443QFK8PryBpDmKn5Gy0s4o0vDSM,106
|
136
136
|
seleniumbase/utilities/selenium_ide/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
137
137
|
seleniumbase/utilities/selenium_ide/convert_ide.py,sha256=pZFnqEJQEKZPyNFjkLD29s2HPQgCrWW9XJWpCPhWOoM,31691
|
138
|
-
seleniumbase-4.32.
|
139
|
-
seleniumbase-4.32.
|
140
|
-
seleniumbase-4.32.
|
141
|
-
seleniumbase-4.32.
|
142
|
-
seleniumbase-4.32.
|
143
|
-
seleniumbase-4.32.
|
138
|
+
seleniumbase-4.32.10a3.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
|
139
|
+
seleniumbase-4.32.10a3.dist-info/METADATA,sha256=cV0euSriQjApI1C02faR-StIhkJ_d4wgmZGaTcuTDl0,86464
|
140
|
+
seleniumbase-4.32.10a3.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
141
|
+
seleniumbase-4.32.10a3.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
142
|
+
seleniumbase-4.32.10a3.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
143
|
+
seleniumbase-4.32.10a3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|