We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d250d6 commit 33007a0Copy full SHA for 33007a0
py/conftest.py
@@ -107,6 +107,9 @@ def fin():
107
kwargs.update({'desired_capabilities': capabilities})
108
driver_instance = getattr(webdriver, driver_class)(**kwargs)
109
yield driver_instance
110
+ if MarkEvaluator(request.node, 'no_driver_after_test').istrue():
111
+ driver_instance = None
112
+
113
114
115
@pytest.fixture(scope='session', autouse=True)
py/test/selenium/webdriver/common/quit_tests.py
@@ -18,6 +18,7 @@
18
import pytest
19
20
21
+@pytest.mark.no_driver_after_test
22
def test_quit(driver, pages):
23
driver.quit()
24
with pytest.raises(Exception):
0 commit comments