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

Method _session

py/selenium/webdriver/remote/webdriver.py:1270–1278  ·  view source on GitHub ↗

Returns the BiDi session object for the current WebDriver session.

(self)

Source from the content-addressed store, hash-verified

1268
1269 @property
1270 def _session(self) -> Session:
1271 """Returns the BiDi session object for the current WebDriver session."""
1272 if not self._websocket_connection:
1273 self._start_bidi()
1274
1275 if self._bidi_session is None:
1276 self._bidi_session = Session(self._websocket_connection)
1277
1278 return self._bidi_session
1279
1280 @property
1281 def browsing_context(self) -> BrowsingContext:

Callers

nothing calls this directly

Calls 2

_start_bidiMethod · 0.95
SessionClass · 0.90

Tested by

no test coverage detected