MCPcopy
hub / github.com/reflex-dev/reflex / driver

Function driver

tests/integration/test_login_flow.py:76–90  ·  view source on GitHub ↗

Get an instance of the browser open to the login_sample app. Args: login_sample: harness for LoginSample app Yields: WebDriver instance.

(login_sample: AppHarness)

Source from the content-addressed store, hash-verified

74
75@pytest.fixture
76def driver(login_sample: AppHarness) -> Generator[WebDriver, None, None]:
77 """Get an instance of the browser open to the login_sample app.
78
79 Args:
80 login_sample: harness for LoginSample app
81
82 Yields:
83 WebDriver instance.
84 """
85 assert login_sample.app_instance is not None, "app is not running"
86 driver = login_sample.frontend()
87 try:
88 yield driver
89 finally:
90 driver.quit()
91
92
93@pytest.fixture

Callers

nothing calls this directly

Calls 1

frontendMethod · 0.80

Tested by

no test coverage detected