seleniumbase 4.37.3__py3-none-any.whl → 4.37.5__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/plugins/sb_manager.py +6 -0
- seleniumbase/undetected/cdp_driver/connection.py +3 -1
- {seleniumbase-4.37.3.dist-info → seleniumbase-4.37.5.dist-info}/METADATA +4 -4
- {seleniumbase-4.37.3.dist-info → seleniumbase-4.37.5.dist-info}/RECORD +9 -9
- {seleniumbase-4.37.3.dist-info → seleniumbase-4.37.5.dist-info}/WHEEL +1 -1
- {seleniumbase-4.37.3.dist-info → seleniumbase-4.37.5.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.37.3.dist-info → seleniumbase-4.37.5.dist-info}/licenses/LICENSE +0 -0
- {seleniumbase-4.37.3.dist-info → seleniumbase-4.37.5.dist-info}/top_level.txt +0 -0
seleniumbase/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.37.
|
2
|
+
__version__ = "4.37.5"
|
@@ -1367,6 +1367,12 @@ def SB(
|
|
1367
1367
|
"%s%s%s%s%s"
|
1368
1368
|
% (c1, left_space, end_text, right_space, cr)
|
1369
1369
|
)
|
1370
|
+
if hasattr(sb_config, "_cdp_aclose"):
|
1371
|
+
import asyncio
|
1372
|
+
with suppress(Exception):
|
1373
|
+
loop = asyncio.get_event_loop()
|
1374
|
+
asyncio.set_event_loop(loop)
|
1375
|
+
loop.run_until_complete(sb_config._cdp_aclose())
|
1370
1376
|
gc.collect()
|
1371
1377
|
if test and test_name and not test_passed and raise_test_failure:
|
1372
1378
|
raise exception
|
@@ -19,6 +19,7 @@ from typing import (
|
|
19
19
|
)
|
20
20
|
import websockets
|
21
21
|
from websockets.protocol import State
|
22
|
+
from seleniumbase import config as sb_config
|
22
23
|
from . import cdp_util as util
|
23
24
|
import mycdp as cdp
|
24
25
|
import mycdp.network
|
@@ -270,6 +271,7 @@ class Connection(metaclass=CantTouchThis):
|
|
270
271
|
max_size=MAX_SIZE,
|
271
272
|
)
|
272
273
|
self.listener = Listener(self)
|
274
|
+
sb_config._cdp_aclose = self.aclose
|
273
275
|
except (Exception,) as e:
|
274
276
|
logger.debug("Exception during opening of websocket: %s", e)
|
275
277
|
if self.listener:
|
@@ -293,7 +295,6 @@ class Connection(metaclass=CantTouchThis):
|
|
293
295
|
if self.listener and self.listener.running:
|
294
296
|
self.listener.cancel()
|
295
297
|
self.enabled_domains.clear()
|
296
|
-
await asyncio.sleep(0.015)
|
297
298
|
try:
|
298
299
|
await self.websocket.close()
|
299
300
|
except Exception:
|
@@ -415,6 +416,7 @@ class Connection(metaclass=CantTouchThis):
|
|
415
416
|
if not _is_update:
|
416
417
|
await self._register_handlers()
|
417
418
|
await self.websocket.send(tx.message)
|
419
|
+
sb_config._cdp_aclose = self.aclose
|
418
420
|
try:
|
419
421
|
return await tx
|
420
422
|
except ProtocolException as e:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: seleniumbase
|
3
|
-
Version: 4.37.
|
3
|
+
Version: 4.37.5
|
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
|
@@ -62,7 +62,7 @@ License-File: LICENSE
|
|
62
62
|
Requires-Dist: pip>=25.0.1
|
63
63
|
Requires-Dist: packaging>=25.0
|
64
64
|
Requires-Dist: setuptools~=70.2; python_version < "3.10"
|
65
|
-
Requires-Dist: setuptools>=
|
65
|
+
Requires-Dist: setuptools>=79.0.0; python_version >= "3.10"
|
66
66
|
Requires-Dist: wheel>=0.45.1
|
67
67
|
Requires-Dist: attrs>=25.3.0
|
68
68
|
Requires-Dist: certifi>=2025.1.31
|
@@ -100,7 +100,7 @@ Requires-Dist: sniffio==1.3.1
|
|
100
100
|
Requires-Dist: h11==0.14.0
|
101
101
|
Requires-Dist: outcome==1.3.0.post0
|
102
102
|
Requires-Dist: trio==0.27.0; python_version < "3.9"
|
103
|
-
Requires-Dist: trio==0.
|
103
|
+
Requires-Dist: trio==0.30.0; python_version >= "3.9"
|
104
104
|
Requires-Dist: trio-websocket==0.12.2
|
105
105
|
Requires-Dist: wsproto==1.2.0
|
106
106
|
Requires-Dist: websocket-client==1.8.0
|
@@ -121,7 +121,7 @@ Requires-Dist: pytest-rerunfailures==15.0; python_version >= "3.9"
|
|
121
121
|
Requires-Dist: pytest-xdist==3.6.1
|
122
122
|
Requires-Dist: parameterized==0.9.0
|
123
123
|
Requires-Dist: behave==1.2.6
|
124
|
-
Requires-Dist: soupsieve==2.
|
124
|
+
Requires-Dist: soupsieve==2.7
|
125
125
|
Requires-Dist: beautifulsoup4==4.13.4
|
126
126
|
Requires-Dist: pyotp==2.9.0
|
127
127
|
Requires-Dist: python-xlib==0.33; platform_system == "Linux"
|
@@ -3,7 +3,7 @@ sbase/__main__.py,sha256=G0bVB1-DM4PGwQ1KyOupaWCs4ePbChZNNWuX2htim5U,647
|
|
3
3
|
sbase/steps.py,sha256=_WvAjydKqZfTdnZW9LPKkRty-g-lfdUPmLqnZj6ulcs,43013
|
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=EdOfmZ-Mk9HJpcoyHvSLoCXg-QkbXXcMFikUwtu_L7k,46
|
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=qQF85LoohJBfrPK5ZcPi50v-pWtOrC9qcN1B3Ki_3tY,59401
|
@@ -90,7 +90,7 @@ seleniumbase/plugins/driver_manager.py,sha256=1l4fxISvGV62gfDxp3yfYE2zz4WKJFLE0t
|
|
90
90
|
seleniumbase/plugins/page_source.py,sha256=loTnXxOj4kxEukuTZEiGyvKBhY3KDVDMnNlHHheTBDE,1889
|
91
91
|
seleniumbase/plugins/pytest_plugin.py,sha256=952AIyaH-PdmNksoeXjzhXxoc8Z53yV-WPjlrHhp2OM,108382
|
92
92
|
seleniumbase/plugins/s3_logging_plugin.py,sha256=WDfertQgGOW_SRJpFMaekYD6vBVW9VO62POtXXy2HCM,2319
|
93
|
-
seleniumbase/plugins/sb_manager.py,sha256=
|
93
|
+
seleniumbase/plugins/sb_manager.py,sha256=IMUACNzz3Jz0F8YNr6MzX3nO_cEG9YQVzXc8X6PNiZY,57530
|
94
94
|
seleniumbase/plugins/screen_shots.py,sha256=1hrXw-hzuZ1BR6Yh7AyWX2ABnvnP73-RCbwdz958gj4,1127
|
95
95
|
seleniumbase/plugins/selenium_plugin.py,sha256=y0eNco8T4KgGLProLPHPLw479QH5lRms4wqwOnTgkSc,60081
|
96
96
|
seleniumbase/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -118,7 +118,7 @@ seleniumbase/undetected/cdp_driver/_contradict.py,sha256=lP4b0h5quAy573ETn_TBbYV
|
|
118
118
|
seleniumbase/undetected/cdp_driver/browser.py,sha256=c-9EWqpD2ZtpDg8edMuw9hYa6GuyOP1qxorNjtsWe1U,30457
|
119
119
|
seleniumbase/undetected/cdp_driver/cdp_util.py,sha256=oKUEHx220PEFvHLW4dz18i4j1Q6HPTdkKx9QOKAVZ3I,21821
|
120
120
|
seleniumbase/undetected/cdp_driver/config.py,sha256=t8KV1Vqa5SQRBq3-gjkHHmj9h85AplAM01asO3AWufs,12507
|
121
|
-
seleniumbase/undetected/cdp_driver/connection.py,sha256=
|
121
|
+
seleniumbase/undetected/cdp_driver/connection.py,sha256=06yJHDAnQnkxooZDBAJJfPz2Fjn6IIg0eUSbCJ_9JLw,23467
|
122
122
|
seleniumbase/undetected/cdp_driver/element.py,sha256=FIC6v7OmumLCT-_vIc3H4oju_oBbaLpWJUJIKm2c_q4,40467
|
123
123
|
seleniumbase/undetected/cdp_driver/tab.py,sha256=bxkCFKDejQ1xKsX3740RvvrYfC4OBv1mlQ4yWJM6As4,52260
|
124
124
|
seleniumbase/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -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.37.
|
139
|
-
seleniumbase-4.37.
|
140
|
-
seleniumbase-4.37.
|
141
|
-
seleniumbase-4.37.
|
142
|
-
seleniumbase-4.37.
|
143
|
-
seleniumbase-4.37.
|
138
|
+
seleniumbase-4.37.5.dist-info/licenses/LICENSE,sha256=BRblZsX7HyPUjQmYTiyWr_e9tzWvmR3R4SFclM2R3W0,1085
|
139
|
+
seleniumbase-4.37.5.dist-info/METADATA,sha256=pcoo_2CkyWe5W9TU8X5XQfP81T8h2JGVQDhIqh9XCyE,86879
|
140
|
+
seleniumbase-4.37.5.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
141
|
+
seleniumbase-4.37.5.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
142
|
+
seleniumbase-4.37.5.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
143
|
+
seleniumbase-4.37.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|