seleniumbase 4.31.2__py3-none-any.whl → 4.31.4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- seleniumbase/__version__.py +1 -1
- seleniumbase/behave/behave_sb.py +4 -4
- seleniumbase/core/browser_launcher.py +15 -6
- seleniumbase/fixtures/base_case.py +6 -4
- seleniumbase/plugins/driver_manager.py +17 -1
- seleniumbase/plugins/pytest_plugin.py +1 -0
- seleniumbase/plugins/sb_manager.py +18 -1
- seleniumbase/plugins/selenium_plugin.py +1 -0
- {seleniumbase-4.31.2.dist-info → seleniumbase-4.31.4.dist-info}/METADATA +3 -3
- {seleniumbase-4.31.2.dist-info → seleniumbase-4.31.4.dist-info}/RECORD +14 -14
- {seleniumbase-4.31.2.dist-info → seleniumbase-4.31.4.dist-info}/LICENSE +0 -0
- {seleniumbase-4.31.2.dist-info → seleniumbase-4.31.4.dist-info}/WHEEL +0 -0
- {seleniumbase-4.31.2.dist-info → seleniumbase-4.31.4.dist-info}/entry_points.txt +0 -0
- {seleniumbase-4.31.2.dist-info → seleniumbase-4.31.4.dist-info}/top_level.txt +0 -0
seleniumbase/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# seleniumbase package
|
2
|
-
__version__ = "4.31.
|
2
|
+
__version__ = "4.31.4"
|
seleniumbase/behave/behave_sb.py
CHANGED
@@ -545,12 +545,12 @@ def get_configured_sb(context):
|
|
545
545
|
if low_key in ["disable-js", "disable_js"]:
|
546
546
|
sb.disable_js = True
|
547
547
|
continue
|
548
|
-
# Handle: -D disable-csp / disable_csp
|
549
|
-
if low_key in ["disable-csp", "disable_csp"]:
|
548
|
+
# Handle: -D disable-csp / disable_csp / dcsp
|
549
|
+
if low_key in ["disable-csp", "disable_csp", "dcsp"]:
|
550
550
|
sb.disable_csp = True
|
551
551
|
continue
|
552
|
-
# Handle: -D disable-ws / disable_ws
|
553
|
-
if low_key in ["disable-ws", "disable_ws"]:
|
552
|
+
# Handle: -D disable-ws / disable_ws / dws
|
553
|
+
if low_key in ["disable-ws", "disable_ws", "dws"]:
|
554
554
|
sb.disable_ws = True
|
555
555
|
continue
|
556
556
|
# Handle: -D enable-ws / enable_ws
|
@@ -2024,6 +2024,7 @@ def _set_firefox_options(
|
|
2024
2024
|
disable_csp,
|
2025
2025
|
firefox_arg,
|
2026
2026
|
firefox_pref,
|
2027
|
+
external_pdf,
|
2027
2028
|
):
|
2028
2029
|
blank_p = "about:blank"
|
2029
2030
|
options = webdriver.FirefoxOptions()
|
@@ -2035,7 +2036,6 @@ def _set_firefox_options(
|
|
2035
2036
|
options.set_preference("browser.newtab.url", blank_p)
|
2036
2037
|
options.set_preference("trailhead.firstrun.branches", "nofirstrun-empty")
|
2037
2038
|
options.set_preference("browser.aboutwelcome.enabled", False)
|
2038
|
-
options.set_preference("pdfjs.disabled", True)
|
2039
2039
|
options.set_preference("app.update.auto", False)
|
2040
2040
|
options.set_preference("app.update.enabled", False)
|
2041
2041
|
options.set_preference("browser.formfill.enable", False)
|
@@ -2122,13 +2122,20 @@ def _set_firefox_options(
|
|
2122
2122
|
options.set_preference(
|
2123
2123
|
"browser.helperApps.neverAsk.saveToDisk",
|
2124
2124
|
(
|
2125
|
-
"application/pdf,
|
2126
|
-
"text/csv,
|
2127
|
-
"text/octet-stream,
|
2128
|
-
"application/"
|
2129
|
-
"
|
2125
|
+
"application/pdf,application/zip,application/octet-stream,"
|
2126
|
+
"text/csv,text/xml,application/xml,text/plain,application/json,"
|
2127
|
+
"text/octet-stream,application/x-gzip,application/x-tar,"
|
2128
|
+
"application/java-archive,text/x-java-source,java,"
|
2129
|
+
"application/javascript,video/jpeg,audio/x-aac,image/svg+xml,"
|
2130
|
+
"application/x-font-woff,application/x-7z-compressed,"
|
2131
|
+
"application/mp4,video/mp4,audio/mp4,video/x-msvideo,"
|
2132
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
2130
2133
|
),
|
2131
2134
|
)
|
2135
|
+
if external_pdf:
|
2136
|
+
options.set_preference("pdfjs.disabled", True)
|
2137
|
+
else:
|
2138
|
+
options.set_preference("pdfjs.disabled", False)
|
2132
2139
|
if firefox_arg:
|
2133
2140
|
# Can be a comma-separated list of Firefox args
|
2134
2141
|
firefox_arg_list = firefox_arg.split(",")
|
@@ -2768,6 +2775,7 @@ def get_remote_driver(
|
|
2768
2775
|
disable_csp,
|
2769
2776
|
firefox_arg,
|
2770
2777
|
firefox_pref,
|
2778
|
+
external_pdf,
|
2771
2779
|
)
|
2772
2780
|
capabilities = webdriver.FirefoxOptions().to_capabilities()
|
2773
2781
|
capabilities["marionette"] = True
|
@@ -3050,6 +3058,7 @@ def get_local_driver(
|
|
3050
3058
|
disable_csp,
|
3051
3059
|
firefox_arg,
|
3052
3060
|
firefox_pref,
|
3061
|
+
external_pdf,
|
3053
3062
|
)
|
3054
3063
|
if LOCAL_GECKODRIVER and os.path.exists(LOCAL_GECKODRIVER):
|
3055
3064
|
try:
|
@@ -14500,15 +14500,13 @@ class BaseCase(unittest.TestCase):
|
|
14500
14500
|
self.__skip_reason = None
|
14501
14501
|
self.testcase_manager.insert_testcase_data(data_payload)
|
14502
14502
|
self.case_start_time = int(time.time() * 1000.0)
|
14503
|
-
self.__activate_virtual_display_as_needed()
|
14504
14503
|
elif hasattr(self, "is_behave") and self.is_behave:
|
14505
14504
|
self.__initialize_variables()
|
14506
|
-
self.__activate_virtual_display_as_needed()
|
14507
14505
|
elif hasattr(self, "is_nosetest") and self.is_nosetest:
|
14508
14506
|
pass # Setup performed in plugins for pynose
|
14509
14507
|
else:
|
14510
|
-
# Pure Python run. Eg. SB()
|
14511
|
-
|
14508
|
+
# Pure Python run. (Eg. SB() and Driver() Managers)
|
14509
|
+
pass # Variables initialized in respective plugins
|
14512
14510
|
|
14513
14511
|
# Verify SeleniumBase is installed successfully, and used correctly
|
14514
14512
|
if not hasattr(self, "browser"):
|
@@ -14696,6 +14694,10 @@ class BaseCase(unittest.TestCase):
|
|
14696
14694
|
)
|
14697
14695
|
raise Exception(message)
|
14698
14696
|
|
14697
|
+
if not hasattr(self, "is_nosetest") or not self.is_nosetest:
|
14698
|
+
# Xvfb Virtual Display activation for Linux
|
14699
|
+
self.__activate_virtual_display_as_needed()
|
14700
|
+
|
14699
14701
|
# Dashboard pre-processing:
|
14700
14702
|
if self.dashboard:
|
14701
14703
|
if self._multithreaded:
|
@@ -620,8 +620,24 @@ def Driver(
|
|
620
620
|
elif browser not in ["chrome", "edge"]:
|
621
621
|
headless2 = False # Only for Chromium browsers
|
622
622
|
if disable_csp is None:
|
623
|
-
|
623
|
+
if (
|
624
|
+
"--disable-csp" in sys_argv
|
625
|
+
or "--no-csp" in sys_argv
|
626
|
+
or "--dcsp" in sys_argv
|
627
|
+
):
|
628
|
+
disable_csp = True
|
629
|
+
else:
|
630
|
+
disable_csp = False
|
624
631
|
if (
|
632
|
+
(enable_ws is None and disable_ws is None)
|
633
|
+
and (
|
634
|
+
"--disable-web-security" in sys_argv
|
635
|
+
or "--disable-ws" in sys_argv
|
636
|
+
or "--dws" in sys_argv
|
637
|
+
)
|
638
|
+
):
|
639
|
+
enable_ws = False
|
640
|
+
elif (
|
625
641
|
(enable_ws is None and disable_ws is None)
|
626
642
|
or (disable_ws is not None and not disable_ws)
|
627
643
|
or (enable_ws is not None and enable_ws)
|
@@ -711,8 +711,25 @@ def SB(
|
|
711
711
|
else:
|
712
712
|
variables = {}
|
713
713
|
if disable_csp is None:
|
714
|
-
|
714
|
+
if (
|
715
|
+
"--disable-csp" in sys_argv
|
716
|
+
or "--no-csp" in sys_argv
|
717
|
+
or "--dcsp" in sys_argv
|
718
|
+
):
|
719
|
+
disable_csp = True
|
720
|
+
else:
|
721
|
+
disable_csp = False
|
715
722
|
if (
|
723
|
+
(enable_ws is None and disable_ws is None)
|
724
|
+
and (
|
725
|
+
"--disable-web-security" in sys_argv
|
726
|
+
or "--disable-ws" in sys_argv
|
727
|
+
or "--dws" in sys_argv
|
728
|
+
)
|
729
|
+
):
|
730
|
+
enable_ws = False
|
731
|
+
disable_ws = True
|
732
|
+
elif (
|
716
733
|
(enable_ws is None and disable_ws is None)
|
717
734
|
or (disable_ws is not None and not disable_ws)
|
718
735
|
or (enable_ws is not None and enable_ws)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: seleniumbase
|
3
|
-
Version: 4.31.
|
3
|
+
Version: 4.31.4
|
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
|
@@ -73,7 +73,7 @@ Requires-Dist: typing-extensions>=4.12.2
|
|
73
73
|
Requires-Dist: sbvirtualdisplay>=1.3.0
|
74
74
|
Requires-Dist: six>=1.16.0
|
75
75
|
Requires-Dist: parse>=1.20.2
|
76
|
-
Requires-Dist: parse-type>=0.6.
|
76
|
+
Requires-Dist: parse-type>=0.6.4
|
77
77
|
Requires-Dist: colorama>=0.4.6
|
78
78
|
Requires-Dist: pyyaml>=6.0.2
|
79
79
|
Requires-Dist: pygments>=2.18.0
|
@@ -110,7 +110,7 @@ Requires-Dist: beautifulsoup4==4.12.3
|
|
110
110
|
Requires-Dist: pyotp==2.9.0
|
111
111
|
Requires-Dist: markdown-it-py==3.0.0
|
112
112
|
Requires-Dist: mdurl==0.1.2
|
113
|
-
Requires-Dist: rich==13.
|
113
|
+
Requires-Dist: rich==13.9.2
|
114
114
|
Requires-Dist: python-xlib==0.33; platform_system == "Linux"
|
115
115
|
Requires-Dist: pyreadline3>=3.5.3; platform_system == "Windows"
|
116
116
|
Requires-Dist: setuptools~=70.2; python_version < "3.10"
|
@@ -3,10 +3,10 @@ sbase/__main__.py,sha256=G0bVB1-DM4PGwQ1KyOupaWCs4ePbChZNNWuX2htim5U,647
|
|
3
3
|
sbase/steps.py,sha256=bKT_u5bJkKzYWEuAXi9NVVRYYxQRCM1_YJUrNFFRVPY,42865
|
4
4
|
seleniumbase/__init__.py,sha256=pXetYtgSNEM2KRcZedpSSqE52Kr3spkOD6DjZO1Wsu4,2236
|
5
5
|
seleniumbase/__main__.py,sha256=dn1p6dgCchmcH1zzTzzQvFwwdQQqnTGH6ULV9m4hv24,654
|
6
|
-
seleniumbase/__version__.py,sha256=
|
6
|
+
seleniumbase/__version__.py,sha256=m1smlHEEucQw2WfBK990QCHC3EU5ptnyTcukm5W-SBk,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
|
-
seleniumbase/behave/behave_sb.py,sha256=
|
9
|
+
seleniumbase/behave/behave_sb.py,sha256=ccAuhE1mte1WdY5-4eqj3fHxEU0wq_LyggovBQ-j-Oo,59544
|
10
10
|
seleniumbase/behave/steps.py,sha256=8-N-NB2tnDsxaP4LSg-uSBgbwZYMS6ZEL1oggO1PCoU,390
|
11
11
|
seleniumbase/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
seleniumbase/common/decorators.py,sha256=LJnAgg0RG3kDOFb8tpyq1zjmpv9ks6Tjg8GwgIn1YuY,7633
|
@@ -36,7 +36,7 @@ seleniumbase/console_scripts/sb_print.py,sha256=yo641b_OdSE0GUauOyxk-QrNeIjYzbRY
|
|
36
36
|
seleniumbase/console_scripts/sb_recorder.py,sha256=QazacANTQgoc76abAfFUV0d4ja1o-bbsoX9sTPZr_eg,11134
|
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=WgZ71cY5gWUcejDClBBpWGgYbZdcLkGGGt0OGgKQLGk,205979
|
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
|
@@ -64,7 +64,7 @@ seleniumbase/extensions/disable_csp.zip,sha256=YMifIIgEBiLrEFrS1sfW4Exh4br1V4oK1
|
|
64
64
|
seleniumbase/extensions/recorder.zip,sha256=OOyzF-Ize2cSRu1CqhzSAq5vusI9hqLLd2OIApUHesI,11918
|
65
65
|
seleniumbase/extensions/sbase_ext.zip,sha256=3s1N8zrVaMz8RQEOIoBzC3KDjtmHwVZRvVsX25Odr_s,8175
|
66
66
|
seleniumbase/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
67
|
-
seleniumbase/fixtures/base_case.py,sha256=
|
67
|
+
seleniumbase/fixtures/base_case.py,sha256=lXQc2hj9i_4gXrZMR6gBuGcQ_-2J_jBm8i7RyTEIZL0,702777
|
68
68
|
seleniumbase/fixtures/constants.py,sha256=TapuGLdERtvZPGMblVXkNGybr8tj8FMtN3sbJ3ygyoc,13569
|
69
69
|
seleniumbase/fixtures/css_to_xpath.py,sha256=9ouDB1xl4MJ2os6JOgTIAyHKOQfuxtxvXC3O5hSnEKA,1954
|
70
70
|
seleniumbase/fixtures/errors.py,sha256=KyxuEVx_e3MPhVrJfNIa_3ltMpbCFxfy_jxK8RFNTns,555
|
@@ -85,13 +85,13 @@ seleniumbase/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
85
85
|
seleniumbase/plugins/base_plugin.py,sha256=FemdftNhOaTfQIw5bWcJQPPPGQ3P0_sMEI_YYDuzZgU,14972
|
86
86
|
seleniumbase/plugins/basic_test_info.py,sha256=8ov6n417gPbqqvrlT4zrch7l2XcRt-GF2ny6rR9AMWk,2108
|
87
87
|
seleniumbase/plugins/db_reporting_plugin.py,sha256=En09qUCoojrk9-vbcnsoHdSELoGmag2GDIyu3jTiJas,7331
|
88
|
-
seleniumbase/plugins/driver_manager.py,sha256=
|
88
|
+
seleniumbase/plugins/driver_manager.py,sha256=uwJ10gcBxvIh9r01dHekYzyxc3nrlI9SGTAftyouPsI,34157
|
89
89
|
seleniumbase/plugins/page_source.py,sha256=loTnXxOj4kxEukuTZEiGyvKBhY3KDVDMnNlHHheTBDE,1889
|
90
|
-
seleniumbase/plugins/pytest_plugin.py,sha256=
|
90
|
+
seleniumbase/plugins/pytest_plugin.py,sha256=ZomHbg3l1O4LmC_3kfCanMhV8zQ08vRPK7fbv_YQ7Og,97555
|
91
91
|
seleniumbase/plugins/s3_logging_plugin.py,sha256=WDfertQgGOW_SRJpFMaekYD6vBVW9VO62POtXXy2HCM,2319
|
92
|
-
seleniumbase/plugins/sb_manager.py,sha256=
|
92
|
+
seleniumbase/plugins/sb_manager.py,sha256=wXTYtkzjc1L9LID7E-xBASZemGudFCcm9Gvqu_DKfTQ,53896
|
93
93
|
seleniumbase/plugins/screen_shots.py,sha256=1hrXw-hzuZ1BR6Yh7AyWX2ABnvnP73-RCbwdz958gj4,1127
|
94
|
-
seleniumbase/plugins/selenium_plugin.py,sha256=
|
94
|
+
seleniumbase/plugins/selenium_plugin.py,sha256=GhGW2ATy2kM7UH7NrZ2je402nN2LMlVHpM-yxlU3I9E,59069
|
95
95
|
seleniumbase/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
96
96
|
seleniumbase/translate/__init__.py,sha256=N2i5XntTwJZmwr9-qvdX5gC6Rdm5-ClIbnQ8yyPn4Oo,459
|
97
97
|
seleniumbase/translate/chinese.py,sha256=0QhK2eadtsdN4KCvwki1J7jBCe8I4xxWbKzteJKJozY,24698
|
@@ -126,9 +126,9 @@ seleniumbase/utilities/selenium_grid/start-grid-hub.bat,sha256=Ftq-GrAKRYH2ssDPr
|
|
126
126
|
seleniumbase/utilities/selenium_grid/start-grid-hub.sh,sha256=KADv0RUHONLL2_I443QFK8PryBpDmKn5Gy0s4o0vDSM,106
|
127
127
|
seleniumbase/utilities/selenium_ide/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
128
128
|
seleniumbase/utilities/selenium_ide/convert_ide.py,sha256=pZFnqEJQEKZPyNFjkLD29s2HPQgCrWW9XJWpCPhWOoM,31691
|
129
|
-
seleniumbase-4.31.
|
130
|
-
seleniumbase-4.31.
|
131
|
-
seleniumbase-4.31.
|
132
|
-
seleniumbase-4.31.
|
133
|
-
seleniumbase-4.31.
|
134
|
-
seleniumbase-4.31.
|
129
|
+
seleniumbase-4.31.4.dist-info/LICENSE,sha256=odSYtWibXBnQ1gBg6CnDZ82n8kLF_if5-2nbqnEyD8k,1085
|
130
|
+
seleniumbase-4.31.4.dist-info/METADATA,sha256=YahM-3Uo0M5W4H4USkmGAdgxWJl6srzNkk-oy9jn1mM,85315
|
131
|
+
seleniumbase-4.31.4.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
132
|
+
seleniumbase-4.31.4.dist-info/entry_points.txt,sha256=CNrh2EKNaHYEhO6pP1RJyVLB99LkDDYX7TnUK8xfjqk,623
|
133
|
+
seleniumbase-4.31.4.dist-info/top_level.txt,sha256=4N97aBOQ8ETCnDnokBsWb07lJfTaq3C1ZzYRxvLMxqU,19
|
134
|
+
seleniumbase-4.31.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|