Actions and Extractors
Perform actions and extract text on the page with natural language.
Actions
Actions are the primary way to interact with the page. The current available actions are goto, click, type, press_enter, exists, scroll, and wait.
We used the goto and wait actions in the Sessions example. In the following example, we display the click, type, press_enter, and exists actions.
In the first search for protein shakes, we find a “One time purchase” radio button, while in the second search for a lawnmower, we only see a “Buy new” section. exists helps us manage these two different cases.
Extractors
Simplex currently provides one extractor — extract_text.
This will extract the number of contributions from Mitchell’s GitHub profile.
That’s a lot of contributions!
Was this page helpful?