Helper Functions

get_dropdown_options

Extracts the text of all the options in a dropdown from a natural language description of the dropdown element.

def get_dropdown_options(self, element_description: str) -> List[str]:
return
List[str]

A list of strings, each representing an option in the dropdown.

raises
ValueError

Raises ValueError if the API request fails or if the API key is not set.

get_page_url

Returns the current page URL. Useful when you need to extract parameters like IDs from the URL.

def get_page_url(self) -> str:
return
str

The current page URL.

raises
ValueError

Raises ValueError if the API request fails or if the API key is not set.

reload

Reloads the page.

def reload() -> None