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

Method _session

py/selenium/webdriver/remote/webdriver.py:1271–1279  ·  view source on GitHub ↗

Returns the BiDi session object for the current WebDriver session.

(self)

Source from the content-addressed store, hash-verified

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