Get an input module object for BiDi input commands. Returns: An object containing access to BiDi input commands. Examples: ``` from selenium.webdriver.common.bidi.input import KeySourceActions, KeyDownAction, KeyUpAction actions = Ke
(self)
| 1380 | |
| 1381 | @property |
| 1382 | def input(self) -> Input: |
| 1383 | """Get an input module object for BiDi input commands. |
| 1384 | |
| 1385 | Returns: |
| 1386 | An object containing access to BiDi input commands. |
| 1387 | |
| 1388 | Examples: |
| 1389 | ``` |
| 1390 | from selenium.webdriver.common.bidi.input import KeySourceActions, KeyDownAction, KeyUpAction |
| 1391 | |
| 1392 | actions = KeySourceActions(id="keyboard", actions=[KeyDownAction(value="a"), KeyUpAction(value="a")]) |
| 1393 | driver.input.perform_actions(driver.current_window_handle, [actions]) |
| 1394 | driver.input.release_actions(driver.current_window_handle) |
| 1395 | ``` |
| 1396 | """ |
| 1397 | if not self._websocket_connection: |
| 1398 | self._start_bidi() |
| 1399 | |
| 1400 | if self._input is None: |
| 1401 | self._input = Input(self._websocket_connection) |
| 1402 | |
| 1403 | return self._input |
| 1404 | |
| 1405 | @property |
| 1406 | def request(self) -> APIRequestContext: |
nothing calls this directly
no test coverage detected