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

Method input

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

1648
1649 @property
1650 def input(self) -> Input:
1651 """Get an input module object for BiDi input commands.
1652
1653 Returns:
1654 An object containing access to BiDi input commands.
1655
1656 Examples:
1657 ```
1658 from selenium.webdriver.common.bidi.input import KeySourceActions, KeyDownAction, KeyUpAction
1659
1660 actions = KeySourceActions(id="keyboard", actions=[KeyDownAction(value="a"), KeyUpAction(value="a")])
1661 driver.input.perform_actions(driver.current_window_handle, [actions])
1662 driver.input.release_actions(driver.current_window_handle)
1663 ```
1664 """
1665 if not self._websocket_connection:
1666 self._start_bidi()
1667
1668 if self._input is None:
1669 self._input = Input(self._websocket_connection)
1670
1671 return self._input
1672
1673 @property
1674 def request(self) -> APIRequestContext:

Callers

nothing calls this directly

Calls 2

_start_bidiMethod · 0.95
InputClass · 0.90

Tested by

no test coverage detected