@@ -27,8 +27,7 @@ def test_anything(self):
27
27
SeleniumBase methods expand and improve on existing WebDriver commands.
28
28
Improvements include making WebDriver more robust, reliable, and flexible.
29
29
Page elements are given enough time to load before WebDriver acts on them.
30
- Code becomes greatly simplified and easier to maintain.
31
- """
30
+ Code becomes greatly simplified and easier to maintain."""
32
31
33
32
import codecs
34
33
import fasteners
@@ -193,8 +192,7 @@ def test_example(self):
193
192
This is useful when sharing code with people who may not be aware
194
193
that SeleniumBase tests are run with "pytest" instead of "python".
195
194
Now, if they accidentally type "python", the tests will still run.
196
- Eg. "python my_test.py" instead of "pytest my_test.py".
197
- """
195
+ Eg. "python my_test.py" instead of "pytest my_test.py"."""
198
196
if name == "__main__": # Test called with "python"
199
197
from pytest import main as pytest_main
200
198
all_args = []
@@ -14964,25 +14962,6 @@ def tearDown(self):
14964
14962
# User forgot to call "self.process_deferred_asserts()" in test
14965
14963
raise deferred_exception
14966
14964
14967
- def __end_reused_class_session_as_needed(self):
14968
- if (
14969
- hasattr(sb_config, "reuse_class_session")
14970
- and sb_config.reuse_class_session
14971
- and hasattr(sb_config, "shared_driver")
14972
- and sb_config.shared_driver
14973
- ):
14974
- if (
14975
- not is_windows
14976
- or (
14977
- hasattr(sb_config.shared_driver, "service")
14978
- and sb_config.shared_driver.service.process
14979
- )
14980
- ):
14981
- try:
14982
- sb_config.shared_driver.quit()
14983
- except Exception:
14984
- sb_config.shared_driver = None
14985
-
14986
14965
@classmethod
14987
14966
def setUpClass(self):
14988
14967
# Only used when: "--rcs" / "--reuse-class-session"
0 commit comments