seleniumbase 4.39.5__py3-none-any.whl → 4.39.6a2__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 +9 -0
- seleniumbase/core/sb_cdp.py +9 -0
- seleniumbase/fixtures/base_case.py +6 -0
- seleniumbase/undetected/cdp_driver/cdp_util.py +13 -1
- {seleniumbase-4.39.5.dist-info → seleniumbase-4.39.6a2.dist-info}/METADATA +7 -7
- {seleniumbase-4.39.5.dist-info → seleniumbase-4.39.6a2.dist-info}/RECORD +11 -11
- {seleniumbase-4.39.5.dist-info → seleniumbase-4.39.6a2.dist-info}/WHEEL +0 -0
- {seleniumbase-4.39.5.dist-info → seleniumbase-4.39.6a2.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.39.5.dist-info → seleniumbase-4.39.6a2.dist-info}/licenses/LICENSE +0 -0
- {seleniumbase-4.39.5.dist-info → seleniumbase-4.39.6a2.dist-info}/top_level.txt +0 -0
seleniumbase/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.39.
|
2
|
+
__version__ = "4.39.6a2"
|
@@ -580,6 +580,7 @@ def uc_open_with_cdp_mode(driver, url=None, **kwargs):
|
|
580
580
|
headless = False
|
581
581
|
headed = None
|
582
582
|
xvfb = None
|
583
|
+
xvfb_metrics = None
|
583
584
|
binary_location = None
|
584
585
|
if hasattr(sb_config, "headless"):
|
585
586
|
headless = sb_config.headless
|
@@ -587,6 +588,8 @@ def uc_open_with_cdp_mode(driver, url=None, **kwargs):
|
|
587
588
|
headed = sb_config.headed
|
588
589
|
if hasattr(sb_config, "xvfb"):
|
589
590
|
xvfb = sb_config.xvfb
|
591
|
+
if hasattr(sb_config, "xvfb_metrics"):
|
592
|
+
xvfb_metrics = sb_config.xvfb_metrics
|
590
593
|
if hasattr(sb_config, "binary_location"):
|
591
594
|
binary_location = sb_config.binary_location
|
592
595
|
|
@@ -599,6 +602,7 @@ def uc_open_with_cdp_mode(driver, url=None, **kwargs):
|
|
599
602
|
headless=headless,
|
600
603
|
headed=headed,
|
601
604
|
xvfb=xvfb,
|
605
|
+
xvfb_metrics=xvfb_metrics,
|
602
606
|
browser_executable_path=binary_location,
|
603
607
|
)
|
604
608
|
)
|
@@ -963,6 +967,11 @@ def __install_pyautogui_if_missing():
|
|
963
967
|
backend="xvfb",
|
964
968
|
use_xauth=True,
|
965
969
|
)
|
970
|
+
if "--debug-display" in sys.argv:
|
971
|
+
print(
|
972
|
+
"Starting VDisplay from browser_launcher: (%s, %s)"
|
973
|
+
% (xvfb_width, xvfb_height)
|
974
|
+
)
|
966
975
|
_xvfb_display.start()
|
967
976
|
sb_config._virtual_display = _xvfb_display
|
968
977
|
sb_config.headless_active = True
|
seleniumbase/core/sb_cdp.py
CHANGED
@@ -1439,6 +1439,10 @@ class CDPMethods():
|
|
1439
1439
|
shared_utils.is_linux()
|
1440
1440
|
and (not sb_config.headed or sb_config.xvfb)
|
1441
1441
|
and not driver.config.headless
|
1442
|
+
and (
|
1443
|
+
not hasattr(sb_config, "_virtual_display")
|
1444
|
+
or not sb_config._virtual_display
|
1445
|
+
)
|
1442
1446
|
):
|
1443
1447
|
from sbvirtualdisplay import Display
|
1444
1448
|
xvfb_width = 1366
|
@@ -1466,6 +1470,11 @@ class CDPMethods():
|
|
1466
1470
|
backend="xvfb",
|
1467
1471
|
use_xauth=True,
|
1468
1472
|
)
|
1473
|
+
if "--debug-display" in sys.argv:
|
1474
|
+
print(
|
1475
|
+
"Starting VDisplay from sb_cdp: (%s, %s)"
|
1476
|
+
% (xvfb_width, xvfb_height)
|
1477
|
+
)
|
1469
1478
|
xvfb_display.start()
|
1470
1479
|
|
1471
1480
|
def __get_configured_pyautogui(self, pyautogui_copy):
|
@@ -14164,7 +14164,13 @@ class BaseCase(unittest.TestCase):
|
|
14164
14164
|
backend="xvfb",
|
14165
14165
|
use_xauth=True,
|
14166
14166
|
)
|
14167
|
+
if "--debug-display" in sys.argv:
|
14168
|
+
print(
|
14169
|
+
"Starting VDisplay from base_case: (%s, %s)"
|
14170
|
+
% (self._xvfb_width, self._xvfb_height)
|
14171
|
+
)
|
14167
14172
|
self._xvfb_display.start()
|
14173
|
+
sb_config._virtual_display = self._xvfb_display
|
14168
14174
|
if "DISPLAY" not in os.environ.keys():
|
14169
14175
|
print(
|
14170
14176
|
"\nX11 display failed! Will use regular xvfb!"
|
@@ -51,7 +51,14 @@ def __activate_virtual_display_as_needed(
|
|
51
51
|
headless, headed, xvfb, xvfb_metrics
|
52
52
|
):
|
53
53
|
"""This is only needed on Linux."""
|
54
|
-
if
|
54
|
+
if (
|
55
|
+
IS_LINUX
|
56
|
+
and (not headed or xvfb)
|
57
|
+
and (
|
58
|
+
not hasattr(sb_config, "_virtual_display")
|
59
|
+
or not sb_config._virtual_display
|
60
|
+
)
|
61
|
+
):
|
55
62
|
from sbvirtualdisplay import Display
|
56
63
|
pip_find_lock = fasteners.InterProcessLock(
|
57
64
|
constants.PipInstall.FINDLOCK
|
@@ -87,6 +94,11 @@ def __activate_virtual_display_as_needed(
|
|
87
94
|
backend="xvfb",
|
88
95
|
use_xauth=True,
|
89
96
|
)
|
97
|
+
if "--debug-display" in sys.argv:
|
98
|
+
print(
|
99
|
+
"Starting VDisplay from cdp_util: (%s, %s)"
|
100
|
+
% (_xvfb_width, _xvfb_height)
|
101
|
+
)
|
90
102
|
_xvfb_display.start()
|
91
103
|
if "DISPLAY" not in os.environ.keys():
|
92
104
|
print(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: seleniumbase
|
3
|
-
Version: 4.39.
|
3
|
+
Version: 4.39.6a2
|
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
|
@@ -88,7 +88,7 @@ Requires-Dist: parse>=1.20.2
|
|
88
88
|
Requires-Dist: parse-type>=0.6.4
|
89
89
|
Requires-Dist: colorama>=0.4.6
|
90
90
|
Requires-Dist: pyyaml>=6.0.2
|
91
|
-
Requires-Dist: pygments>=2.19.
|
91
|
+
Requires-Dist: pygments>=2.19.2
|
92
92
|
Requires-Dist: pyreadline3>=3.5.3; platform_system == "Windows"
|
93
93
|
Requires-Dist: tabcompleter>=1.4.0
|
94
94
|
Requires-Dist: pdbp>=1.7.0
|
@@ -96,7 +96,7 @@ Requires-Dist: idna==3.10
|
|
96
96
|
Requires-Dist: chardet==5.2.0
|
97
97
|
Requires-Dist: charset-normalizer<4,>=3.4.2
|
98
98
|
Requires-Dist: urllib3<2,>=1.26.20; python_version < "3.10"
|
99
|
-
Requires-Dist: urllib3<2.
|
99
|
+
Requires-Dist: urllib3<2.6.0,>=1.26.20; python_version >= "3.10"
|
100
100
|
Requires-Dist: requests==2.32.4
|
101
101
|
Requires-Dist: sniffio==1.3.1
|
102
102
|
Requires-Dist: h11==0.16.0
|
@@ -117,7 +117,7 @@ Requires-Dist: iniconfig==2.1.0
|
|
117
117
|
Requires-Dist: pluggy==1.5.0; python_version < "3.9"
|
118
118
|
Requires-Dist: pluggy==1.6.0; python_version >= "3.9"
|
119
119
|
Requires-Dist: pytest==8.3.5; python_version < "3.9"
|
120
|
-
Requires-Dist: pytest==8.4.
|
120
|
+
Requires-Dist: pytest==8.4.1; python_version >= "3.9"
|
121
121
|
Requires-Dist: pytest-html==4.0.2
|
122
122
|
Requires-Dist: pytest-metadata==3.1.1
|
123
123
|
Requires-Dist: pytest-ordering==0.6
|
@@ -145,12 +145,12 @@ 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
|
147
147
|
Requires-Dist: flake8==5.0.4; python_version < "3.9" and extra == "flake8"
|
148
|
-
Requires-Dist: flake8==7.
|
148
|
+
Requires-Dist: flake8==7.3.0; python_version >= "3.9" and extra == "flake8"
|
149
149
|
Requires-Dist: mccabe==0.7.0; extra == "flake8"
|
150
150
|
Requires-Dist: pyflakes==2.5.0; python_version < "3.9" and extra == "flake8"
|
151
|
-
Requires-Dist: pyflakes==3.
|
151
|
+
Requires-Dist: pyflakes==3.4.0; python_version >= "3.9" and extra == "flake8"
|
152
152
|
Requires-Dist: pycodestyle==2.9.1; python_version < "3.9" and extra == "flake8"
|
153
|
-
Requires-Dist: pycodestyle==2.
|
153
|
+
Requires-Dist: pycodestyle==2.14.0; python_version >= "3.9" and extra == "flake8"
|
154
154
|
Provides-Extra: ipdb
|
155
155
|
Requires-Dist: ipdb==0.13.13; extra == "ipdb"
|
156
156
|
Requires-Dist: ipython==7.34.0; extra == "ipdb"
|
@@ -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=T4dV03KINsAqJLiGXdQ7PVCPCYoIgD1UqcBIFUZTkyU,48
|
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=bbbfa8ID6nMnmrVJ7G-014uOj5PE4B8IROZB2WXSQ8I,59172
|
@@ -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=nzmsNY6rxD77MjRsSXvmxIJCPjqmWG1z2ArC35ev7zg,243609
|
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=fNGjbapXmEsht54x1o6Igk198QdnPxDDnjUOzQxNhNQ,25055
|
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=ad3iRpHAHcsH4QtJVFJemxEak2RvSJkNtS_EO3OPX8g,88252
|
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
|
@@ -65,7 +65,7 @@ seleniumbase/extensions/disable_csp.zip,sha256=5RvomXnm2PdivUVcxTV6jfvD8WhTEsQYH
|
|
65
65
|
seleniumbase/extensions/recorder.zip,sha256=JEE_FVEvlS63cFQbVLEroIyPSS91nWCDL0MhjVrmIpk,11813
|
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=039aEMIJJ81JisIQyVgfa1WzHMRrW4BMzgqNz9DTKgM,727718
|
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
|
@@ -116,7 +116,7 @@ seleniumbase/undetected/webelement.py,sha256=OOpUYbEiOG52KsYYyuDW9tYLdA2SMnukvwQ
|
|
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
118
|
seleniumbase/undetected/cdp_driver/browser.py,sha256=LF0TukNNuPN1zh75oiPBHKU3uLc4BmVyyw0EFn7hnWg,35640
|
119
|
-
seleniumbase/undetected/cdp_driver/cdp_util.py,sha256=
|
119
|
+
seleniumbase/undetected/cdp_driver/cdp_util.py,sha256=ku3Nq8yjC6kbvVV2PB149E-TxQIIvjHDFQI2wyi0HVs,25221
|
120
120
|
seleniumbase/undetected/cdp_driver/config.py,sha256=4-nUkEf7JSuOdFMNd6XmJnFucZrA59-kH1FUMxDcgFU,12561
|
121
121
|
seleniumbase/undetected/cdp_driver/connection.py,sha256=WgZ4QamXSdTzP4Xfgkn8mxv-JFivMG6hqbyHy2_LQlg,25717
|
122
122
|
seleniumbase/undetected/cdp_driver/element.py,sha256=FIC6v7OmumLCT-_vIc3H4oju_oBbaLpWJUJIKm2c_q4,40467
|
@@ -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.39.
|
139
|
-
seleniumbase-4.39.
|
140
|
-
seleniumbase-4.39.
|
141
|
-
seleniumbase-4.39.
|
142
|
-
seleniumbase-4.39.
|
143
|
-
seleniumbase-4.39.
|
138
|
+
seleniumbase-4.39.6a2.dist-info/licenses/LICENSE,sha256=BRblZsX7HyPUjQmYTiyWr_e9tzWvmR3R4SFclM2R3W0,1085
|
139
|
+
seleniumbase-4.39.6a2.dist-info/METADATA,sha256=o_ndjaHy6QBAVRAgQjC0wEIUAtJACveokHxCfuPDcdY,87337
|
140
|
+
seleniumbase-4.39.6a2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
141
|
+
seleniumbase-4.39.6a2.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
142
|
+
seleniumbase-4.39.6a2.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
143
|
+
seleniumbase-4.39.6a2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|