All of these functions are avaliable on the Simplex class.

goto

Navigate to a specific URL.

def goto(self, url: str) -> None
url
string
required

The URL to navigate to.

Example Usage

from simplex import Simplex
simplex = Simplex(api_key="your_api_key")
simplex.create_session()
simplex.goto("https://www.google.com")

click

Click on an element on the page using a natural language description.

def click(self, element_description: str, use_vision: bool = False) -> None
element_description
string
required

Natural language description of the element to click.

use_vision
boolean
default:
"False"

Whether to use Simplex’s vision to find the element. Defaults to False.

Example Usage

from simplex import Simplex
simplex = Simplex(api_key="your_api_key")
simplex.goto("https://www.google.com")
simplex.click("the search bar")

type

Type text into an input field using a natural language description.

def type(text: str) -> None
text
string
required

The text to type into the input field.

Example Usage

from simplex import Simplex
simplex = Simplex(api_key="your_api_key")
simplex.goto("https://www.google.com")
simplex.click("the search bar")
simplex.type("nvidia stock")

press_enter

Press the enter key on the keyboard.

def press_enter() -> None

Example Usage

from simplex import Simplex
simplex = Simplex(api_key="your_api_key")
simplex.goto("https://www.google.com")
simplex.click("the search bar")
simplex.type("nvidia stock")
simplex.press_enter()

exists

Check if an element exists on the page.

def exists(element_description: str) -> Tuple[bool, str]
element_description
string
required

Natural language description of the element to check.

Example Usage

from simplex import Simplex
simplex = Simplex(api_key="your_api_key")
simplex.goto("https://www.linkedin.com/feed/")
exists, reasoning = simplex.exists("one time purchase button")
print(exists, reasoning)

scroll

Scroll the page by a specified number of pixels.

def scroll(scroll_amount: int) -> None
scroll_amount
int
required

The amount of pixels to scroll by.

Example Usage

from simplex import Simplex
simplex = Simplex(api_key="your_api_key")
simplex.goto("https://www.linkedin.com/feed/")
simplex.scroll(200)

wait

Wait for a specified amount of time.

def wait(wait_time: int) -> None
wait_time
int
required

The amount of time to wait in milliseconds.

Example Usage

from simplex import Simplex
simplex = Simplex(api_key="your_api_key")
simplex.goto("https://www.google.com")
simplex.wait(1000)