Logging into sites
Overview
AgentQL's SDK is integrated with Playwright, which allows you to programmatically interact with web sites. This section shows how to use the query_element
and get_by_prompt
functions to return elements, fill out forms, and close cookie dialogs.
Guides
- How to solve Playwright timeout errors when interacting with elements
- How to close a modal or cookie dialog
- Fetch a collection of elements with `query_elements`
- Fetch a single element with `get_by_prompt`
- Submitting a form
Related content
Example Python Script
This example shows how to use AgentQL's
get_by_prompt
method to retrieve an element and interact with it.Example JavaScript Script
This example shows how to use AgentQL's
get_by_prompt
method to retrieve an element and interact with it.Logging into sites
How to use AgentQL with cached user credentials to access websites.