Actions
Perform actions on the page using natural language.
There are two types of actions Simplex exposes: agentic actions, which call our custom web agents, and non-agentic actions, which are traditional browser automation actions like going to a web page, typing in text, or emulating key presses.
Agentic actions
click
Click on an element on the page using a natural language description.
Natural language description of the element to click.
Example Usage
If you need to upload or download files during a click, you can use the click_and_upload or click_and_download actions.
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
hover
Hover over an element on the page using a natural language description.
Natural language description of the element to hover over.
Example Usage
select_dropdown_option
Select an option from a dropdown using a natural language description. Helpful when click() occasionally fails to register dropdown options.
For this method, the element_description must be an exact match to the dropdown option.
Natural language description of the dropdown option to select.
Example Usage
scroll_to_element
Scroll to an element on the page using a natural language description.
Natural language description of the element to scroll to.
Example Usage
Non-agentic actions
goto
Navigate to a specific URL.
The URL to navigate to.
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
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
reload
Reloads the page.