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

Method _initialize_driver

py/conftest.py:483–490  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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