seleniumbase 4.35.3__py3-none-any.whl → 4.35.4__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 +11 -1
- seleniumbase/fixtures/base_case.py +4 -1
- seleniumbase/undetected/__init__.py +1 -0
- seleniumbase/undetected/cdp_driver/browser.py +1 -1
- {seleniumbase-4.35.3.dist-info → seleniumbase-4.35.4.dist-info}/METADATA +1 -1
- {seleniumbase-4.35.3.dist-info → seleniumbase-4.35.4.dist-info}/RECORD +12 -12
- {seleniumbase-4.35.3.dist-info → seleniumbase-4.35.4.dist-info}/LICENSE +0 -0
- {seleniumbase-4.35.3.dist-info → seleniumbase-4.35.4.dist-info}/WHEEL +0 -0
- {seleniumbase-4.35.3.dist-info → seleniumbase-4.35.4.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.35.3.dist-info → seleniumbase-4.35.4.dist-info}/top_level.txt +0 -0
seleniumbase/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.35.
|
2
|
+
__version__ = "4.35.4"
|
@@ -682,8 +682,10 @@ def uc_open_with_cdp_mode(driver, url=None):
|
|
682
682
|
cdp.gui_hover_element = CDPM.gui_hover_element
|
683
683
|
cdp.gui_hover_and_click = CDPM.gui_hover_and_click
|
684
684
|
cdp.internalize_links = CDPM.internalize_links
|
685
|
+
cdp.open_new_window = CDPM.open_new_window
|
685
686
|
cdp.switch_to_window = CDPM.switch_to_window
|
686
687
|
cdp.switch_to_newest_window = CDPM.switch_to_newest_window
|
688
|
+
cdp.open_new_tab = CDPM.open_new_tab
|
687
689
|
cdp.switch_to_tab = CDPM.switch_to_tab
|
688
690
|
cdp.switch_to_newest_tab = CDPM.switch_to_newest_tab
|
689
691
|
cdp.close_active_tab = CDPM.close_active_tab
|
seleniumbase/core/sb_cdp.py
CHANGED
@@ -106,7 +106,7 @@ class CDPMethods():
|
|
106
106
|
driver = self.driver
|
107
107
|
if hasattr(driver, "cdp_base"):
|
108
108
|
driver = driver.cdp_base
|
109
|
-
self.
|
109
|
+
self.loop.run_until_complete(self.page.get(url))
|
110
110
|
url_protocol = url.split(":")[0]
|
111
111
|
safe_url = True
|
112
112
|
if url_protocol not in ["about", "data", "chrome"]:
|
@@ -1014,12 +1014,22 @@ class CDPMethods():
|
|
1014
1014
|
self.set_window_rect(x, y, width, height)
|
1015
1015
|
self.__add_light_pause()
|
1016
1016
|
|
1017
|
+
def open_new_window(self, url=None, switch_to=True):
|
1018
|
+
return self.open_new_tab(url=url, switch_to=switch_to)
|
1019
|
+
|
1017
1020
|
def switch_to_window(self, window):
|
1018
1021
|
self.switch_to_tab(window)
|
1019
1022
|
|
1020
1023
|
def switch_to_newest_window(self):
|
1021
1024
|
self.switch_to_tab(-1)
|
1022
1025
|
|
1026
|
+
def open_new_tab(self, url=None, switch_to=True):
|
1027
|
+
if not isinstance(url, str):
|
1028
|
+
url = "about:blank"
|
1029
|
+
self.loop.run_until_complete(self.page.get(url, new_tab=True))
|
1030
|
+
if switch_to:
|
1031
|
+
self.switch_to_newest_tab()
|
1032
|
+
|
1023
1033
|
def switch_to_tab(self, tab):
|
1024
1034
|
driver = self.driver
|
1025
1035
|
if hasattr(driver, "cdp_base"):
|
@@ -3896,6 +3896,9 @@ class BaseCase(unittest.TestCase):
|
|
3896
3896
|
|
3897
3897
|
def open_new_window(self, switch_to=True):
|
3898
3898
|
"""Opens a new browser tab/window and switches to it by default."""
|
3899
|
+
if self.__is_cdp_swap_needed():
|
3900
|
+
self.cdp.open_new_tab(switch_to=switch_to)
|
3901
|
+
return
|
3899
3902
|
self.wait_for_ready_state_complete()
|
3900
3903
|
if switch_to:
|
3901
3904
|
try:
|
@@ -10339,7 +10342,7 @@ class BaseCase(unittest.TestCase):
|
|
10339
10342
|
timeout = self.__get_new_timeout(timeout)
|
10340
10343
|
selector, by = self.__recalculate_selector(selector, by)
|
10341
10344
|
if self.__is_cdp_swap_needed():
|
10342
|
-
return self.cdp.
|
10345
|
+
return self.cdp.wait_for_text_not_visible(
|
10343
10346
|
text, selector=selector, timeout=timeout
|
10344
10347
|
)
|
10345
10348
|
return page_actions.wait_for_text_not_visible(
|
@@ -792,7 +792,7 @@ class CookieJar:
|
|
792
792
|
connection = self._browser.connection
|
793
793
|
cookies = await connection.send(cdp.network.get_cookies())
|
794
794
|
if cookies:
|
795
|
-
await connection.send(cdp.
|
795
|
+
await connection.send(cdp.storage.clear_cookies())
|
796
796
|
|
797
797
|
|
798
798
|
class HTTPApi:
|
@@ -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=IksyggWqGI_zELnLnvW4IXN2rTpkeGXFJtRWudNaUNM,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
|
@@ -36,7 +36,7 @@ seleniumbase/console_scripts/sb_print.py,sha256=tNy-bMDgwHJO3bZxMpmo9weSE8uhbH0C
|
|
36
36
|
seleniumbase/console_scripts/sb_recorder.py,sha256=fnHb5-kh11Hit-E9Ha-e4QXzqLcZvtij6mb5qNd4B1Q,11032
|
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=I3CdpcZGoyxe0QS6m2qt-vMgLejN66q6WRS3cPQCaV8,237064
|
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=4VkpMwavz0fx8wcOqJ_jyBT0HIXwcxmAcpd1gjJ
|
|
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=xKhJowUxlDK_2jjM5DGGj2UMa-cBU28xihrScgtz7ZE,83866
|
54
54
|
seleniumbase/core/sb_driver.py,sha256=yvTDRblBzG6bDX7XcLiAA6QcBelSJj_HHL_04lcfeeE,13760
|
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
|
@@ -65,7 +65,7 @@ seleniumbase/extensions/disable_csp.zip,sha256=5RvomXnm2PdivUVcxTV6jfvD8WhTEsQYH
|
|
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=YTaO_EDz3ACMFV7aK1EFtt2a5mHzvquu7BPwL_vGH3c,722601
|
69
69
|
seleniumbase/fixtures/constants.py,sha256=WMrItuNyKq3XVJ64NluLIRc4gJCxDw8K8qXED0b9S2w,13752
|
70
70
|
seleniumbase/fixtures/css_to_xpath.py,sha256=9ouDB1xl4MJ2os6JOgTIAyHKOQfuxtxvXC3O5hSnEKA,1954
|
71
71
|
seleniumbase/fixtures/errors.py,sha256=KyxuEVx_e3MPhVrJfNIa_3ltMpbCFxfy_jxK8RFNTns,555
|
@@ -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=6_pKZZQFqudtng4IleiwVXvLnUibFgFOrIISq2IGbc0,24377
|
110
110
|
seleniumbase/undetected/cdp.py,sha256=RLpwZnhUvmK9tgXcZIBBQedwk2q7Jj_EXZkmzI8WUqk,4023
|
111
111
|
seleniumbase/undetected/dprocess.py,sha256=83EV8ZHJWHG1TSUv9JNClBhdgiBXlkCc6mJ--HsoP3k,1681
|
112
112
|
seleniumbase/undetected/options.py,sha256=BoNuwhrG7oOvuLvTwkvsWCF36pMkS1tHCG-XpP4_EkI,3001
|
@@ -115,7 +115,7 @@ seleniumbase/undetected/reactor.py,sha256=NropaXcO54pzmDq6quR27qPJxab6636H7LRAaq
|
|
115
115
|
seleniumbase/undetected/webelement.py,sha256=OOpUYbEiOG52KsYYyuDW9tYLdA2SMnukvwQHUdPVn9E,1389
|
116
116
|
seleniumbase/undetected/cdp_driver/__init__.py,sha256=Ga9alwuaZZy4_XOShc0HjgFnNqpPdrcbjAicz5gE7a4,215
|
117
117
|
seleniumbase/undetected/cdp_driver/_contradict.py,sha256=lP4b0h5quAy573ETn_TBbYV889cL1AuPLVInpJ0ZkiU,3183
|
118
|
-
seleniumbase/undetected/cdp_driver/browser.py,sha256=
|
118
|
+
seleniumbase/undetected/cdp_driver/browser.py,sha256=c-9EWqpD2ZtpDg8edMuw9hYa6GuyOP1qxorNjtsWe1U,30457
|
119
119
|
seleniumbase/undetected/cdp_driver/cdp_util.py,sha256=6-0-Dq_dFAOXQ5_a58i9y93zRqWUrjWoy6Pf_xBoveE,21648
|
120
120
|
seleniumbase/undetected/cdp_driver/config.py,sha256=t8KV1Vqa5SQRBq3-gjkHHmj9h85AplAM01asO3AWufs,12507
|
121
121
|
seleniumbase/undetected/cdp_driver/connection.py,sha256=_ounWzQ1m3_t-zJVgOAU2RINiKphfJkw2Qbu-zIoHC0,23359
|
@@ -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.35.
|
139
|
-
seleniumbase-4.35.
|
140
|
-
seleniumbase-4.35.
|
141
|
-
seleniumbase-4.35.
|
142
|
-
seleniumbase-4.35.
|
143
|
-
seleniumbase-4.35.
|
138
|
+
seleniumbase-4.35.4.dist-info/LICENSE,sha256=BRblZsX7HyPUjQmYTiyWr_e9tzWvmR3R4SFclM2R3W0,1085
|
139
|
+
seleniumbase-4.35.4.dist-info/METADATA,sha256=QHqs05gZ1ZPiyfYeZIOBgEEY1CdCmdnktBRVsdSPWl0,86525
|
140
|
+
seleniumbase-4.35.4.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
141
|
+
seleniumbase-4.35.4.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
142
|
+
seleniumbase-4.35.4.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
143
|
+
seleniumbase-4.35.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|