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

Method input

py/selenium/webdriver/remote/webdriver.py:1395–1416  ·  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

1393
1394 @property
1395 def input(self) -> Input:
1396 """Get an input module object for BiDi input commands.
1397
1398 Returns:
1399 An object containing access to BiDi input commands.
1400
1401 Examples:
1402 ```
1403 from selenium.webdriver.common.bidi.input import KeySourceActions, KeyDownAction, KeyUpAction
1404
1405 actions = KeySourceActions(id="keyboard", actions=[KeyDownAction(value="a"), KeyUpAction(value="a")])
1406 driver.input.perform_actions(driver.current_window_handle, [actions])
1407 driver.input.release_actions(driver.current_window_handle)
1408 ```
1409 """
1410 if not self._websocket_connection:
1411 self._start_bidi()
1412
1413 if self._input is None:
1414 self._input = Input(self._websocket_connection)
1415
1416 return self._input
1417
1418 @property
1419 def request(self) -> APIRequestContext:

Callers

nothing calls this directly

Calls 2

_start_bidiMethod · 0.95
InputClass · 0.90

Tested by

no test coverage detected