selenium.webdriver.common.bidi.input¶
Classes
|
Represents an element origin for input actions. |
|
Represents file dialog information from input.fileDialogOpened event. |
Event class for input.fileDialogOpened event. |
|
|
BiDi implementation of the input module. |
|
Represents a key down action. |
|
Represents a sequence of key actions. |
|
Represents a key up action. |
|
Represents a sequence of none actions. |
|
Represents the possible origin types. |
|
Represents a pause action. |
|
Common properties for pointer actions. |
|
Represents a pointer down action. |
|
Represents a pointer move action. |
|
Represents pointer parameters for pointer actions. |
|
Represents a sequence of pointer actions. |
Represents the possible pointer types. |
|
|
Represents a pointer up action. |
|
Represents a wheel scroll action. |
|
Represents a sequence of wheel actions. |
- class selenium.webdriver.common.bidi.input.PointerType[source]¶
Represents the possible pointer types.
- MOUSE = 'mouse'¶
- PEN = 'pen'¶
- TOUCH = 'touch'¶
- VALID_TYPES = {'mouse', 'pen', 'touch'}¶
- class selenium.webdriver.common.bidi.input.Origin[source]¶
Represents the possible origin types.
- VIEWPORT = 'viewport'¶
- POINTER = 'pointer'¶
- class selenium.webdriver.common.bidi.input.ElementOrigin(element_reference: dict)[source]¶
Represents an element origin for input actions.
- type: str¶
- element: dict¶
- class selenium.webdriver.common.bidi.input.PointerParameters(pointer_type: str = 'mouse')[source]¶
Represents pointer parameters for pointer actions.
- pointer_type: str = 'mouse'¶
- class selenium.webdriver.common.bidi.input.PointerCommonProperties(width: int = 1, height: int = 1, pressure: float = 0.0, tangential_pressure: float = 0.0, twist: int = 0, altitude_angle: float = 0.0, azimuth_angle: float = 0.0)[source]¶
Common properties for pointer actions.
- width: int = 1¶
- height: int = 1¶
- pressure: float = 0.0¶
- tangential_pressure: float = 0.0¶
- twist: int = 0¶
- altitude_angle: float = 0.0¶
- azimuth_angle: float = 0.0¶
- class selenium.webdriver.common.bidi.input.PauseAction(duration: int | None = None)[source]¶
Represents a pause action.
- duration: int | None = None¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.KeyDownAction(value: str = '')[source]¶
Represents a key down action.
- value: str = ''¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.KeyUpAction(value: str = '')[source]¶
Represents a key up action.
- value: str = ''¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.PointerDownAction(button: int = 0, properties: PointerCommonProperties | None = None)[source]¶
Represents a pointer down action.
- button: int = 0¶
- properties: PointerCommonProperties | None = None¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.PointerUpAction(button: int = 0)[source]¶
Represents a pointer up action.
- button: int = 0¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.PointerMoveAction(x: float = 0, y: float = 0, duration: int | None = None, origin: str | ElementOrigin | None = None, properties: PointerCommonProperties | None = None)[source]¶
Represents a pointer move action.
- x: float = 0¶
- y: float = 0¶
- duration: int | None = None¶
- origin: str | ElementOrigin | None = None¶
- properties: PointerCommonProperties | None = None¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.WheelScrollAction(x: int = 0, y: int = 0, delta_x: int = 0, delta_y: int = 0, duration: int | None = None, origin: str | ElementOrigin | None = 'viewport')[source]¶
Represents a wheel scroll action.
- x: int = 0¶
- y: int = 0¶
- delta_x: int = 0¶
- delta_y: int = 0¶
- duration: int | None = None¶
- origin: str | ElementOrigin | None = 'viewport'¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.NoneSourceActions(id: str = '', actions: list[~selenium.webdriver.common.bidi.input.PauseAction] = <factory>)[source]¶
Represents a sequence of none actions.
- id: str = ''¶
- actions: list[PauseAction]¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.KeySourceActions(id: str = '', actions: list[~selenium.webdriver.common.bidi.input.PauseAction | ~selenium.webdriver.common.bidi.input.KeyDownAction | ~selenium.webdriver.common.bidi.input.KeyUpAction] = <factory>)[source]¶
Represents a sequence of key actions.
- id: str = ''¶
- actions: list[PauseAction | KeyDownAction | KeyUpAction]¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.PointerSourceActions(id: str = '', parameters: ~selenium.webdriver.common.bidi.input.PointerParameters | None = None, actions: list[~selenium.webdriver.common.bidi.input.PauseAction | ~selenium.webdriver.common.bidi.input.PointerDownAction | ~selenium.webdriver.common.bidi.input.PointerUpAction | ~selenium.webdriver.common.bidi.input.PointerMoveAction] = <factory>)[source]¶
Represents a sequence of pointer actions.
- id: str = ''¶
- parameters: PointerParameters | None = None¶
- actions: list[PauseAction | PointerDownAction | PointerUpAction | PointerMoveAction]¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.WheelSourceActions(id: str = '', actions: list[~selenium.webdriver.common.bidi.input.PauseAction | ~selenium.webdriver.common.bidi.input.WheelScrollAction] = <factory>)[source]¶
Represents a sequence of wheel actions.
- id: str = ''¶
- actions: list[PauseAction | WheelScrollAction]¶
- property type: str¶
- class selenium.webdriver.common.bidi.input.FileDialogInfo(context: str, multiple: bool, element: dict | None = None)[source]¶
Represents file dialog information from input.fileDialogOpened event.
- context: str¶
- multiple: bool¶
- element: dict | None = None¶
- classmethod from_dict(data: dict) FileDialogInfo [source]¶
Creates a FileDialogInfo instance from a dictionary.
Parameters:¶
data: A dictionary containing the file dialog information.
Returns:¶
FileDialogInfo: A new instance of FileDialogInfo.
- class selenium.webdriver.common.bidi.input.FileDialogOpened[source]¶
Event class for input.fileDialogOpened event.
- event_class = 'input.fileDialogOpened'¶
- class selenium.webdriver.common.bidi.input.Input(conn)[source]¶
BiDi implementation of the input module.
- perform_actions(context: str, actions: list[NoneSourceActions | KeySourceActions | PointerSourceActions | WheelSourceActions]) None [source]¶
Performs a sequence of user input actions.
Parameters:¶
context: The browsing context ID where actions should be performed. actions: A list of source actions to perform.
- release_actions(context: str) None [source]¶
Releases all input state for the given context.
Parameters:¶
context: The browsing context ID to release actions for.
- set_files(context: str, element: dict, files: list[str]) None [source]¶
Sets files for a file input element.
Parameters:¶
context: The browsing context ID. element: The element reference (script.SharedReference). files: A list of file paths to set.