Skip to content

Commit fac9dfb

Browse files
removed duplicate code after yield in driver fixture
1 parent cbbae89 commit fac9dfb

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
@@ -342,16 +342,6 @@ def driver(request):
342342
if request.node.get_closest_marker("no_driver_after_test"):
343343
driver_instance = None
344344

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

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

0 commit comments

Comments
 (0)