MCPcopy Index your code
hub / github.com/appium/python-client / driver

Function driver

test/functional/android/chrome_tests.py:31–41  ·  view source on GitHub ↗

Create and configure Chrome driver for testing.

()

Source from the content-addressed store, hash-verified

29
30@pytest.fixture
31def driver() -> Generator['WebDriver', None, None]:
32 """Create and configure Chrome driver for testing."""
33 client_config = AppiumClientConfig(remote_server_addr=SERVER_URL_BASE)
34 client_config.timeout = 600
35 options = make_options()
36 options.browser_name = 'Chrome'
37 driver = webdriver.Remote(SERVER_URL_BASE, options=options, client_config=client_config)
38
39 yield driver
40
41 driver.quit()
42
43
44def test_find_single_element(driver: 'WebDriver') -> None:

Callers

nothing calls this directly

Calls 2

AppiumClientConfigClass · 0.90
make_optionsFunction · 0.70

Tested by

no test coverage detected