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

Method _initialize_driver

py/conftest.py:481–488  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

479 return self._request.config.getoption("remote")
480
481 def _initialize_driver(self):
482 kwargs = {}
483 if self.options is not None:
484 kwargs["options"] = self.options
485 if self.is_remote:
486 kwargs["command_executor"] = self._server.status_url.removesuffix("/status")
487 return webdriver.Remote(**kwargs)
488 return self._start_local_driver(kwargs)
489
490 def _start_local_driver(self, kwargs):
491 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