MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / input

Method input

py/selenium/webdriver/remote/webdriver.py:1382–1403  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

_start_bidiMethod · 0.95
InputClass · 0.90

Tested by

no test coverage detected