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

Method _session

py/selenium/webdriver/remote/webdriver.py:1379–1387  ·  view source on GitHub ↗

Returns the BiDi session object for the current WebDriver session.

(self)

Source from the content-addressed store, hash-verified

1377
1378 @property
1379 def _session(self) -> Session:
1380 """Returns the BiDi session object for the current WebDriver session."""
1381 if not self._websocket_connection:
1382 self._start_bidi()
1383
1384 if self._bidi_session is None:
1385 self._bidi_session = Session(self._websocket_connection)
1386
1387 return self._bidi_session
1388
1389 @property
1390 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