Actions
Perform actions on the page with natural language.
All of these functions are avaliable on the Simplex
class.
goto
Navigate to a specific URL.
The URL to navigate to.
Example Usage
click
Click on an element on the page using a natural language description.
Natural language description of the element to click.
Whether to use Simplex’s vision to find the element. Defaults to False
.
Example Usage
type
Type text into an input field using a natural language description.
The text to type into the input field.
Example Usage
press_enter
Press the enter key on the keyboard.
Example Usage
exists
Check if an element exists on the page.
Natural language description of the element to check.
A tuple containing:
- exists (bool): Whether the element exists.
- reasoning (str): The reasoning behind whether the element exists.
Example Usage
scroll
Scroll the page by a specified number of pixels.
The amount of pixels to scroll by.
Example Usage
wait
Wait for a specified amount of time.
The amount of time to wait in milliseconds.
Example Usage
Was this page helpful?