seleniumbase 4.40.5__py3-none-any.whl → 4.40.7__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/console_scripts/sb_install.py +2 -2
- seleniumbase/core/browser_launcher.py +2 -0
- seleniumbase/core/sb_cdp.py +10 -0
- seleniumbase/fixtures/base_case.py +3 -0
- {seleniumbase-4.40.5.dist-info → seleniumbase-4.40.7.dist-info}/METADATA +6 -5
- {seleniumbase-4.40.5.dist-info → seleniumbase-4.40.7.dist-info}/RECORD +11 -11
- {seleniumbase-4.40.5.dist-info → seleniumbase-4.40.7.dist-info}/WHEEL +0 -0
- {seleniumbase-4.40.5.dist-info → seleniumbase-4.40.7.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.40.5.dist-info → seleniumbase-4.40.7.dist-info}/licenses/LICENSE +0 -0
- {seleniumbase-4.40.5.dist-info → seleniumbase-4.40.7.dist-info}/top_level.txt +0 -0
seleniumbase/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.40.
|
2
|
+
__version__ = "4.40.7"
|
@@ -851,7 +851,7 @@ def main(override=None, intel_for_uc=None, force_uc=None):
|
|
851
851
|
"Cannot determine which version of EdgeDriver to download!"
|
852
852
|
)
|
853
853
|
if use_version.isdigit():
|
854
|
-
edgedriver_st = "https://msedgedriver.
|
854
|
+
edgedriver_st = "https://msedgedriver.microsoft.com/LATEST_RELEASE"
|
855
855
|
use_version = "%s_%s_%s" % (edgedriver_st, use_version, suffix)
|
856
856
|
url_request = requests_get_with_retry(use_version)
|
857
857
|
if url_request.ok:
|
@@ -862,7 +862,7 @@ def main(override=None, intel_for_uc=None, force_uc=None):
|
|
862
862
|
and use_version != "115.0.1901.183"
|
863
863
|
):
|
864
864
|
use_version = "115.0.1901.183"
|
865
|
-
download_url = "https://msedgedriver.
|
865
|
+
download_url = "https://msedgedriver.microsoft.com/%s/%s" % (
|
866
866
|
use_version,
|
867
867
|
file_name,
|
868
868
|
)
|
@@ -742,6 +742,8 @@ def uc_open_with_cdp_mode(driver, url=None, **kwargs):
|
|
742
742
|
cdp.send_keys = CDPM.send_keys
|
743
743
|
cdp.press_keys = CDPM.press_keys
|
744
744
|
cdp.type = CDPM.type
|
745
|
+
cdp.clear_input = CDPM.clear_input
|
746
|
+
cdp.clear = CDPM.clear_input
|
745
747
|
cdp.set_value = CDPM.set_value
|
746
748
|
cdp.submit = CDPM.submit
|
747
749
|
cdp.evaluate = CDPM.evaluate
|
seleniumbase/core/sb_cdp.py
CHANGED
@@ -937,6 +937,16 @@ class CDPMethods():
|
|
937
937
|
self.__slow_mode_pause_if_set()
|
938
938
|
self.loop.run_until_complete(self.page.sleep(0.025))
|
939
939
|
|
940
|
+
def clear_input(self, selector, timeout=None):
|
941
|
+
if not timeout:
|
942
|
+
timeout = settings.SMALL_TIMEOUT
|
943
|
+
self.__slow_mode_pause_if_set()
|
944
|
+
element = self.select(selector, timeout=timeout)
|
945
|
+
element.scroll_into_view()
|
946
|
+
element.clear_input()
|
947
|
+
self.__slow_mode_pause_if_set()
|
948
|
+
self.loop.run_until_complete(self.page.sleep(0.025))
|
949
|
+
|
940
950
|
def set_value(self, selector, text, timeout=None):
|
941
951
|
"""Similar to send_keys(), but clears the text field first."""
|
942
952
|
if not timeout:
|
@@ -1194,6 +1194,9 @@ class BaseCase(unittest.TestCase):
|
|
1194
1194
|
if self.timeout_multiplier and timeout == settings.LARGE_TIMEOUT:
|
1195
1195
|
timeout = self.__get_new_timeout(timeout)
|
1196
1196
|
selector, by = self.__recalculate_selector(selector, by)
|
1197
|
+
if self.__is_cdp_swap_needed():
|
1198
|
+
self.cdp.clear_input(selector)
|
1199
|
+
return
|
1197
1200
|
if self.__is_shadow_selector(selector):
|
1198
1201
|
self.__shadow_clear(selector, timeout)
|
1199
1202
|
return
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: seleniumbase
|
3
|
-
Version: 4.40.
|
3
|
+
Version: 4.40.7
|
4
4
|
Summary: A complete web automation framework for end-to-end testing.
|
5
5
|
Home-page: https://github.com/seleniumbase/SeleniumBase
|
6
6
|
Author: Michael Mintz
|
@@ -61,13 +61,13 @@ Requires-Python: >=3.8
|
|
61
61
|
Description-Content-Type: text/markdown
|
62
62
|
License-File: LICENSE
|
63
63
|
Requires-Dist: pip>=25.0.1; python_version < "3.9"
|
64
|
-
Requires-Dist: pip>=25.
|
64
|
+
Requires-Dist: pip>=25.2; python_version >= "3.9"
|
65
65
|
Requires-Dist: packaging>=25.0
|
66
66
|
Requires-Dist: setuptools~=70.2; python_version < "3.10"
|
67
67
|
Requires-Dist: setuptools>=80.9.0; python_version >= "3.10"
|
68
68
|
Requires-Dist: wheel>=0.45.1
|
69
69
|
Requires-Dist: attrs>=25.3.0
|
70
|
-
Requires-Dist: certifi>=2025.7.
|
70
|
+
Requires-Dist: certifi>=2025.7.14
|
71
71
|
Requires-Dist: exceptiongroup>=1.3.0
|
72
72
|
Requires-Dist: websockets~=13.1; python_version < "3.9"
|
73
73
|
Requires-Dist: websockets>=15.0.1; python_version >= "3.9"
|
@@ -133,14 +133,14 @@ Requires-Dist: pyotp==2.9.0
|
|
133
133
|
Requires-Dist: python-xlib==0.33; platform_system == "Linux"
|
134
134
|
Requires-Dist: markdown-it-py==3.0.0
|
135
135
|
Requires-Dist: mdurl==0.1.2
|
136
|
-
Requires-Dist: rich<15,>=14.
|
136
|
+
Requires-Dist: rich<15,>=14.1.0
|
137
137
|
Provides-Extra: allure
|
138
138
|
Requires-Dist: allure-pytest>=2.13.5; extra == "allure"
|
139
139
|
Requires-Dist: allure-python-commons>=2.13.5; extra == "allure"
|
140
140
|
Requires-Dist: allure-behave>=2.13.5; extra == "allure"
|
141
141
|
Provides-Extra: coverage
|
142
142
|
Requires-Dist: coverage>=7.6.1; python_version < "3.9" and extra == "coverage"
|
143
|
-
Requires-Dist: coverage>=7.
|
143
|
+
Requires-Dist: coverage>=7.10.1; python_version >= "3.9" and extra == "coverage"
|
144
144
|
Requires-Dist: pytest-cov>=5.0.0; python_version < "3.9" and extra == "coverage"
|
145
145
|
Requires-Dist: pytest-cov>=6.2.1; python_version >= "3.9" and extra == "coverage"
|
146
146
|
Provides-Extra: flake8
|
@@ -297,6 +297,7 @@ from seleniumbase import SB
|
|
297
297
|
with SB(uc=True, test=True, locale="en") as sb:
|
298
298
|
url = "https://gitlab.com/users/sign_in"
|
299
299
|
sb.activate_cdp_mode(url)
|
300
|
+
sb.sleep(1)
|
300
301
|
sb.uc_gui_click_captcha()
|
301
302
|
sb.sleep(2)
|
302
303
|
```
|
@@ -3,7 +3,7 @@ sbase/__main__.py,sha256=G0bVB1-DM4PGwQ1KyOupaWCs4ePbChZNNWuX2htim5U,647
|
|
3
3
|
sbase/steps.py,sha256=EdJyNVJ1yxoHsc7qp8kzx0EESIkOh_033yLCvmaPcs4,43281
|
4
4
|
seleniumbase/__init__.py,sha256=JFEY9P5QJqsa1M6ghzLMH2eIPQyh85iglCaQwg8Y8z4,2498
|
5
5
|
seleniumbase/__main__.py,sha256=dn1p6dgCchmcH1zzTzzQvFwwdQQqnTGH6ULV9m4hv24,654
|
6
|
-
seleniumbase/__version__.py,sha256=
|
6
|
+
seleniumbase/__version__.py,sha256=V_0vVp6v3VoHU1e8_QXmc4WXe8p3DHuvNniHjjuDc7I,46
|
7
7
|
seleniumbase/behave/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
seleniumbase/behave/behave_helper.py,sha256=f4CdiSSYM3gMAicSKWJInkVGFwpGXtHMD8fikTehopQ,24291
|
9
9
|
seleniumbase/behave/behave_sb.py,sha256=guLihFsr1uJ4v2AR3r3Vy_BTeHrHwy2JEJxhp-MVnZA,59872
|
@@ -25,7 +25,7 @@ seleniumbase/console_scripts/run.py,sha256=scHfo8Zf6F7ABAGBiKHF-Vv7MOrB6qU75RRiy
|
|
25
25
|
seleniumbase/console_scripts/sb_behave_gui.py,sha256=CX5dTIIptsaR1xLVy53DM6haV_mIc3kYALUkkhAkfRI,14888
|
26
26
|
seleniumbase/console_scripts/sb_caseplans.py,sha256=C_vhATSa9dEDOSmHT9uk64ebkXcqM5uu8Y1S3LjATkc,17875
|
27
27
|
seleniumbase/console_scripts/sb_commander.py,sha256=Ejal4WhnMSTLcykCT04jmMuH_fvDrfIAoxoJ23LclAM,13084
|
28
|
-
seleniumbase/console_scripts/sb_install.py,sha256=
|
28
|
+
seleniumbase/console_scripts/sb_install.py,sha256=LosIv69jk2k6bNdcB1ozUjV0vZ4lWyUBr8xM2UpSz5g,56401
|
29
29
|
seleniumbase/console_scripts/sb_mkchart.py,sha256=ep9g-9CSIwaOJKVxhB3xjRQpfsuApyN8-Dr129cNXwQ,10941
|
30
30
|
seleniumbase/console_scripts/sb_mkdir.py,sha256=iFN6ZMOgmH_GAvEuvzYltWuYiS3PRFQcL5fJIj1yX_Y,30897
|
31
31
|
seleniumbase/console_scripts/sb_mkfile.py,sha256=OWYd4yFccmjrd-gNn1t1una-HDRU2_N2-r4Tg3nHsj0,17744
|
@@ -36,7 +36,7 @@ seleniumbase/console_scripts/sb_print.py,sha256=tNy-bMDgwHJO3bZxMpmo9weSE8uhbH0C
|
|
36
36
|
seleniumbase/console_scripts/sb_recorder.py,sha256=DH-n2fN7N9qyHMl7wjtn8MiliBgfw-1kwgmfg1GUuhk,10772
|
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=APe3SSs99ruihjgUgMMM7ChFuFjnW0gzkf-hkIT5ZSc,247571
|
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=pZ1NboNfziHU3vWZLOZLX-qkfM3oKSnpc3omQf9
|
|
50
50
|
seleniumbase/core/recorder_helper.py,sha256=OBqNiCC_11ctpsD72KV4YUaKovmSpvs14HP1gwFesBA,25190
|
51
51
|
seleniumbase/core/report_helper.py,sha256=AIl6Qava2yW1uSzbLpJBlPlYDz0KE-rVhogh8hsGWBo,12201
|
52
52
|
seleniumbase/core/s3_manager.py,sha256=z_4qx2jI_gtK5r3niGXgEOBpfMUicUCOciowai50MP4,3529
|
53
|
-
seleniumbase/core/sb_cdp.py,sha256=
|
53
|
+
seleniumbase/core/sb_cdp.py,sha256=HwwCJAXrr7BhnMub64yI2CtVy2OnGRERwL7lBIzGBSE,94488
|
54
54
|
seleniumbase/core/sb_driver.py,sha256=yUdS9_9OXTVaWzp1qY7msvnsvCK8X3FIcxMixb0BuBE,13827
|
55
55
|
seleniumbase/core/session_helper.py,sha256=s9zD3PVZEWVzG2h81cCUskbNWLfdjC_LwwQjKptHCak,558
|
56
56
|
seleniumbase/core/settings_parser.py,sha256=gqVohHVlE_5L5Cqe2L24uYrRzvoK-saX8E_Df7_-_3I,7609
|
@@ -67,7 +67,7 @@ seleniumbase/extensions/disable_csp.zip,sha256=5RvomXnm2PdivUVcxTV6jfvD8WhTEsQYH
|
|
67
67
|
seleniumbase/extensions/recorder.zip,sha256=JEE_FVEvlS63cFQbVLEroIyPSS91nWCDL0MhjVrmIpk,11813
|
68
68
|
seleniumbase/extensions/sbase_ext.zip,sha256=3s1N8zrVaMz8RQEOIoBzC3KDjtmHwVZRvVsX25Odr_s,8175
|
69
69
|
seleniumbase/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
70
|
-
seleniumbase/fixtures/base_case.py,sha256=
|
70
|
+
seleniumbase/fixtures/base_case.py,sha256=XIljHhCgs4xS_7zo8EZgzHSsBeXgiLrHGmAyojttUQY,737062
|
71
71
|
seleniumbase/fixtures/constants.py,sha256=WMrItuNyKq3XVJ64NluLIRc4gJCxDw8K8qXED0b9S2w,13752
|
72
72
|
seleniumbase/fixtures/css_to_xpath.py,sha256=9ouDB1xl4MJ2os6JOgTIAyHKOQfuxtxvXC3O5hSnEKA,1954
|
73
73
|
seleniumbase/fixtures/errors.py,sha256=KyxuEVx_e3MPhVrJfNIa_3ltMpbCFxfy_jxK8RFNTns,555
|
@@ -137,9 +137,9 @@ seleniumbase/utilities/selenium_grid/start-grid-hub.bat,sha256=Ftq-GrAKRYH2ssDPr
|
|
137
137
|
seleniumbase/utilities/selenium_grid/start-grid-hub.sh,sha256=KADv0RUHONLL2_I443QFK8PryBpDmKn5Gy0s4o0vDSM,106
|
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.40.
|
141
|
-
seleniumbase-4.40.
|
142
|
-
seleniumbase-4.40.
|
143
|
-
seleniumbase-4.40.
|
144
|
-
seleniumbase-4.40.
|
145
|
-
seleniumbase-4.40.
|
140
|
+
seleniumbase-4.40.7.dist-info/licenses/LICENSE,sha256=BRblZsX7HyPUjQmYTiyWr_e9tzWvmR3R4SFclM2R3W0,1085
|
141
|
+
seleniumbase-4.40.7.dist-info/METADATA,sha256=uT6Pw1hAnzyHimKb3XsMz2Sf9Ld5ucQ_IB_4DLXT5Js,87310
|
142
|
+
seleniumbase-4.40.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
143
|
+
seleniumbase-4.40.7.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
144
|
+
seleniumbase-4.40.7.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
145
|
+
seleniumbase-4.40.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|