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

Method __new__

py/selenium/webdriver/common/webdriver.py:28–31  ·  view source on GitHub ↗
(cls, *args, **kwargs)

Source from the content-addressed store, hash-verified

26 self._is_remote = False
27
28 def __new__(cls, *args, **kwargs):
29 if cls is LocalWebDriver:
30 raise TypeError(f"Only children of '{cls.__name__}' may be instantiated")
31 return object.__new__(cls)
32
33 def quit(self) -> None:
34 """Closes the browser and shuts down the driver executable."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected