Create and configure Chrome driver for testing.
()
| 29 | |
| 30 | @pytest.fixture |
| 31 | def 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 | |
| 44 | def test_find_single_element(driver: 'WebDriver') -> None: |
nothing calls this directly
no test coverage detected