Create and configure Chrome driver with BiDi support for testing.
()
| 57 | |
| 58 | @pytest.fixture |
| 59 | def driver() -> Generator['WebDriver', None, None]: |
| 60 | """Create and configure Chrome driver with BiDi support for testing.""" |
| 61 | client_config = AppiumClientConfig(remote_server_addr=SERVER_URL_BASE) |
| 62 | client_config.timeout = 600 |
| 63 | options = make_options() |
| 64 | options.web_socket_url = True |
| 65 | driver = webdriver.Remote(SERVER_URL_BASE, options=options, client_config=client_config) |
| 66 | |
| 67 | yield driver |
| 68 | |
| 69 | driver.quit() |
| 70 | |
| 71 | |
| 72 | @pytest.mark.skipif(is_ci(), reason='Flaky on CI') |
nothing calls this directly
no test coverage detected