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

Function wrapper

py/selenium/webdriver/remote/webdriver.py:253–257  ·  view source on GitHub ↗
(self: _D, *args: _P.args, **kwargs: _P.kwargs)

Source from the content-addressed store, hash-verified

251def _required_chromium_based_browser(func: Callable[Concatenate[_D, _P], _R]) -> Callable[Concatenate[_D, _P], _R]:
252 @functools.wraps(func)
253 def wrapper(self: _D, *args: _P.args, **kwargs: _P.kwargs) -> _R:
254 assert self.caps["browserName"].lower() not in ["firefox", "safari"], (
255 "This only currently works in Chromium based browsers"
256 )
257 return func(self, *args, **kwargs)
258
259 return wrapper
260

Callers

nothing calls this directly

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected