MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / stop_driver

Function stop_driver

py/conftest.py:618–625  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

616
617@pytest.fixture(scope="session", autouse=True)
618def stop_driver(request):
619 def fin():
620 global selenium_driver
621 if selenium_driver is not None:
622 selenium_driver.stop_driver()
623 selenium_driver = None
624
625 request.addfinalizer(fin) # noqa: PT021
626
627
628def pytest_exception_interact(node, call, report):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected