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

Method _initialize_driver

py/conftest.py:459–466  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

457 return self._request.config.getoption("remote")
458
459 def _initialize_driver(self):
460 kwargs = {}
461 if self.options is not None:
462 kwargs["options"] = self.options
463 if self.is_remote:
464 kwargs["command_executor"] = self._server.status_url.removesuffix("/status")
465 return webdriver.Remote(**kwargs)
466 return self._start_local_driver(kwargs)
467
468 def _start_local_driver(self, kwargs):
469 for attempt in range(1, self.DRIVER_START_RETRIES + 1):

Callers 1

driverMethod · 0.95

Calls 1

_start_local_driverMethod · 0.95

Tested by

no test coverage detected