Skip to content

Commit 300728f

Browse files
removed duplicate code after yield in driver fixture
1 parent ef3d979 commit 300728f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

py/conftest.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -344,16 +344,6 @@ def driver(request):
344344
if request.node.get_closest_marker("no_driver_after_test"):
345345
driver_instance = None
346346

347-
# Close the browser after BiDi tests. Those make event subscriptions
348-
# and doesn't seems to be stable enough, causing the flakiness of the
349-
# subsequent tests.
350-
# Remove this when BiDi implementation and API is stable.
351-
if selenium_driver.bidi:
352-
request.addfinalizer(selenium_driver.stop_driver)
353-
354-
if request.node.get_closest_marker("no_driver_after_test"):
355-
driver_instance = None
356-
357347

358348
@pytest.fixture(scope="session", autouse=True)
359349
def stop_driver(request):

0 commit comments

Comments
 (0)