seleniumbase 4.37.4__py3-none-any.whl → 4.37.6__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/undetected/__init__.py +12 -3
- seleniumbase/undetected/cdp_driver/connection.py +4 -6
- {seleniumbase-4.37.4.dist-info → seleniumbase-4.37.6.dist-info}/METADATA +4 -4
- {seleniumbase-4.37.4.dist-info → seleniumbase-4.37.6.dist-info}/RECORD +9 -9
- {seleniumbase-4.37.4.dist-info → seleniumbase-4.37.6.dist-info}/WHEEL +1 -1
- {seleniumbase-4.37.4.dist-info → seleniumbase-4.37.6.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.37.4.dist-info → seleniumbase-4.37.6.dist-info}/licenses/LICENSE +0 -0
- {seleniumbase-4.37.4.dist-info → seleniumbase-4.37.6.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.6"
|
@@ -402,7 +402,8 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
|
|
402
402
|
|
403
403
|
def add_cdp_listener(self, event_name, callback):
|
404
404
|
if (
|
405
|
-
self
|
405
|
+
hasattr(self, "reactor")
|
406
|
+
and self.reactor
|
406
407
|
and self.reactor is not None
|
407
408
|
and isinstance(self.reactor, Reactor)
|
408
409
|
):
|
@@ -411,7 +412,11 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
|
|
411
412
|
return False
|
412
413
|
|
413
414
|
def clear_cdp_listeners(self):
|
414
|
-
if
|
415
|
+
if (
|
416
|
+
hasattr(self, "reactor")
|
417
|
+
and self.reactor
|
418
|
+
and isinstance(self.reactor, Reactor)
|
419
|
+
):
|
415
420
|
self.reactor.handlers.clear()
|
416
421
|
|
417
422
|
def window_new(self, url=None):
|
@@ -581,7 +586,11 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
|
|
581
586
|
finally:
|
582
587
|
with suppress(Exception):
|
583
588
|
self.service._terminate_process()
|
584
|
-
if
|
589
|
+
if (
|
590
|
+
hasattr(self, "reactor")
|
591
|
+
and self.reactor
|
592
|
+
and hasattr(self.reactor, "event")
|
593
|
+
):
|
585
594
|
logger.debug("Shutting down Reactor")
|
586
595
|
with suppress(Exception):
|
587
596
|
self.reactor.event.set()
|
@@ -292,10 +292,6 @@ class Connection(metaclass=CantTouchThis):
|
|
292
292
|
Closes the websocket connection. Shouldn't be called manually by users.
|
293
293
|
"""
|
294
294
|
if self.websocket and self.websocket.state is not State.CLOSED:
|
295
|
-
if self.listener and self.listener.running:
|
296
|
-
self.listener.cancel()
|
297
|
-
self.enabled_domains.clear()
|
298
|
-
await asyncio.sleep(0.015)
|
299
295
|
try:
|
300
296
|
await self.websocket.close()
|
301
297
|
except Exception:
|
@@ -303,6 +299,9 @@ class Connection(metaclass=CantTouchThis):
|
|
303
299
|
"\n❌ Error closing websocket connection to %s",
|
304
300
|
self.websocket_url
|
305
301
|
)
|
302
|
+
if self.listener and self.listener.running:
|
303
|
+
self.listener.cancel()
|
304
|
+
self.enabled_domains.clear()
|
306
305
|
logger.debug(
|
307
306
|
"\n❌ Closed websocket connection to %s", self.websocket_url
|
308
307
|
)
|
@@ -550,8 +549,7 @@ class Listener:
|
|
550
549
|
except asyncio.TimeoutError:
|
551
550
|
self.idle.set()
|
552
551
|
# Pause for a moment.
|
553
|
-
|
554
|
-
await asyncio.sleep(0.015)
|
552
|
+
await asyncio.sleep(self.time_before_considered_idle / 10)
|
555
553
|
continue
|
556
554
|
except (Exception,) as e:
|
557
555
|
logger.debug(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: seleniumbase
|
3
|
-
Version: 4.37.
|
3
|
+
Version: 4.37.6
|
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=j6IWHJ5BuCD8TKZmHtP39X9QEfRHPBiTjLgwDLkKNjQ,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
|
@@ -106,7 +106,7 @@ seleniumbase/translate/portuguese.py,sha256=x3P4qxp56UiI41GoaL7JbUvFRYsgXU1EKjTg
|
|
106
106
|
seleniumbase/translate/russian.py,sha256=TyN9n0b4GRWDEYnHRGw1rfNAscdDmP3F3Y3aySM3C7s,27978
|
107
107
|
seleniumbase/translate/spanish.py,sha256=hh3xgW1Pq122SHYVvJAxFaXhFrjniOVncVbJbfWqOUM,25528
|
108
108
|
seleniumbase/translate/translator.py,sha256=wPhZH6e5NhmebYL1kP2eGxUcVy1gfTb6XCH8ATEPpxE,49238
|
109
|
-
seleniumbase/undetected/__init__.py,sha256=
|
109
|
+
seleniumbase/undetected/__init__.py,sha256=95SyFC9vLCHhtT13TIgC2-eIcTiIQNLNvIf70FxyphU,26942
|
110
110
|
seleniumbase/undetected/cdp.py,sha256=G6nLStm1l8PmZlKIyMnFcYMV7HD5kiGb-9BaqPjVP3I,5497
|
111
111
|
seleniumbase/undetected/dprocess.py,sha256=83EV8ZHJWHG1TSUv9JNClBhdgiBXlkCc6mJ--HsoP3k,1681
|
112
112
|
seleniumbase/undetected/options.py,sha256=BoNuwhrG7oOvuLvTwkvsWCF36pMkS1tHCG-XpP4_EkI,3001
|
@@ -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=5A2RytIpQJtKGwdp4bayazZzhwhaRChrAmm7c4XQhhM,23421
|
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.6.dist-info/licenses/LICENSE,sha256=BRblZsX7HyPUjQmYTiyWr_e9tzWvmR3R4SFclM2R3W0,1085
|
139
|
+
seleniumbase-4.37.6.dist-info/METADATA,sha256=91W_Xk9QI52W1oUzoytLWDMmyGvkKgdJ1HYOnDMtRjQ,86879
|
140
|
+
seleniumbase-4.37.6.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
141
|
+
seleniumbase-4.37.6.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
142
|
+
seleniumbase-4.37.6.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
143
|
+
seleniumbase-4.37.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|