seleniumbase 4.40.6__py3-none-any.whl → 4.40.8__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 +2 -0
- seleniumbase/core/sb_cdp.py +10 -0
- seleniumbase/fixtures/base_case.py +3 -0
- seleniumbase/undetected/cdp_driver/browser.py +2 -2
- {seleniumbase-4.40.6.dist-info → seleniumbase-4.40.8.dist-info}/METADATA +6 -5
- {seleniumbase-4.40.6.dist-info → seleniumbase-4.40.8.dist-info}/RECORD +11 -11
- {seleniumbase-4.40.6.dist-info → seleniumbase-4.40.8.dist-info}/WHEEL +0 -0
- {seleniumbase-4.40.6.dist-info → seleniumbase-4.40.8.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.40.6.dist-info → seleniumbase-4.40.8.dist-info}/licenses/LICENSE +0 -0
- {seleniumbase-4.40.6.dist-info → seleniumbase-4.40.8.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.8"
|
@@ -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
|
@@ -935,12 +935,12 @@ class HTTPApi:
|
|
935
935
|
async def post(self, endpoint, data):
|
936
936
|
return await self._request(endpoint, data)
|
937
937
|
|
938
|
-
async def _request(self, endpoint, method: str = "
|
938
|
+
async def _request(self, endpoint, method: str = "GET", data: dict = None):
|
939
939
|
url = urllib.parse.urljoin(
|
940
940
|
self.api, f"json/{endpoint}" if endpoint else "/json"
|
941
941
|
)
|
942
942
|
if data and method.lower() == "get":
|
943
|
-
raise ValueError("
|
943
|
+
raise ValueError("GET requests cannot contain data")
|
944
944
|
if not url:
|
945
945
|
url = self.api + endpoint
|
946
946
|
request = urllib.request.Request(url)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: seleniumbase
|
3
|
-
Version: 4.40.
|
3
|
+
Version: 4.40.8
|
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.
|
70
|
+
Requires-Dist: certifi>=2025.8.3
|
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.2; 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=WdJocwB5nwqYDYixM6fX8YH-VQSQSEOHCu7-_dDx9sY,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
|
@@ -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
|
@@ -117,7 +117,7 @@ seleniumbase/undetected/reactor.py,sha256=NropaXcO54pzmDq6quR27qPJxab6636H7LRAaq
|
|
117
117
|
seleniumbase/undetected/webelement.py,sha256=OOpUYbEiOG52KsYYyuDW9tYLdA2SMnukvwQHUdPVn9E,1389
|
118
118
|
seleniumbase/undetected/cdp_driver/__init__.py,sha256=Ga9alwuaZZy4_XOShc0HjgFnNqpPdrcbjAicz5gE7a4,215
|
119
119
|
seleniumbase/undetected/cdp_driver/_contradict.py,sha256=lP4b0h5quAy573ETn_TBbYV889cL1AuPLVInpJ0ZkiU,3183
|
120
|
-
seleniumbase/undetected/cdp_driver/browser.py,sha256=
|
120
|
+
seleniumbase/undetected/cdp_driver/browser.py,sha256=mVM36mFqA4ZnxBDQ5ily3dpIcZ33O5coG1boEcX4aLc,35640
|
121
121
|
seleniumbase/undetected/cdp_driver/cdp_util.py,sha256=ku3Nq8yjC6kbvVV2PB149E-TxQIIvjHDFQI2wyi0HVs,25221
|
122
122
|
seleniumbase/undetected/cdp_driver/config.py,sha256=4-nUkEf7JSuOdFMNd6XmJnFucZrA59-kH1FUMxDcgFU,12561
|
123
123
|
seleniumbase/undetected/cdp_driver/connection.py,sha256=WgZ4QamXSdTzP4Xfgkn8mxv-JFivMG6hqbyHy2_LQlg,25717
|
@@ -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.8.dist-info/licenses/LICENSE,sha256=BRblZsX7HyPUjQmYTiyWr_e9tzWvmR3R4SFclM2R3W0,1085
|
141
|
+
seleniumbase-4.40.8.dist-info/METADATA,sha256=gYIbcID6S-R94XYql5MzEq1ZK64N2Ambf4UFLcR9iDA,87309
|
142
|
+
seleniumbase-4.40.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
143
|
+
seleniumbase-4.40.8.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
144
|
+
seleniumbase-4.40.8.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
145
|
+
seleniumbase-4.40.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|