Get an emulation module object for BiDi emulation commands. Returns: An object containing access to BiDi emulation commands. Examples: ``` from selenium.webdriver.common.bidi.emulation import GeolocationCoordinates coordinates = Geol
(self)
| 1369 | |
| 1370 | @property |
| 1371 | def emulation(self) -> Emulation: |
| 1372 | """Get an emulation module object for BiDi emulation commands. |
| 1373 | |
| 1374 | Returns: |
| 1375 | An object containing access to BiDi emulation commands. |
| 1376 | |
| 1377 | Examples: |
| 1378 | ``` |
| 1379 | from selenium.webdriver.common.bidi.emulation import GeolocationCoordinates |
| 1380 | |
| 1381 | coordinates = GeolocationCoordinates(37.7749, -122.4194) |
| 1382 | driver.emulation.set_geolocation_override(coordinates=coordinates, contexts=[context_id]) |
| 1383 | ``` |
| 1384 | """ |
| 1385 | if not self._websocket_connection: |
| 1386 | self._start_bidi() |
| 1387 | |
| 1388 | assert self._websocket_connection is not None |
| 1389 | if self._emulation is None: |
| 1390 | self._emulation = Emulation(self._websocket_connection) |
| 1391 | |
| 1392 | return self._emulation |
| 1393 | |
| 1394 | @property |
| 1395 | def input(self) -> Input: |
no test coverage detected