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

Function driver

py/test/unit/selenium/webdriver/remote/script_tests.py:36–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35@pytest.fixture
36def driver():
37 driver = MagicMock()
38 driver.current_window_handle = "context-1"
39 driver.create_web_element.side_effect = lambda element_id: WebElement(driver, element_id)
40 driver._shadowroot_cls = ShadowRoot
41 return driver
42
43
44@pytest.fixture

Callers

nothing calls this directly

Calls 1

WebElementClass · 0.90

Tested by

no test coverage detected