Using the API
Browser Interactions
Available browser actions and interactions
Browser interactions define how to interact with web elements. Each interaction combines an action type with its required parameters.
BrowserInteraction Class
Parameters
The type of action to perform
Parameters required for the action (WebElement, Text, or Duration)
Available Actions
Click
Clicks at specific coordinates on the page. Requires a WebElement parameter.
Example:
Type
Types text into the active element. Requires a Text parameter.
Example:
Hover
Moves the mouse to specific coordinates. Requires a WebElement parameter.
Example:
Scroll
Scrolls the page vertically. Requires a WebElement parameter with target coordinates.
Example:
Wait
Waits for a specified duration. Requires a Duration parameter.
Example:
Validation
Each interaction can be validated to ensure it has the correct parameters: