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
- Return a collection of elements with
query_elements
- Return a single element with
get_by_prompt
- How to fill out and submit a form
- How to close a modal or cookie dialog
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.