Pick the right method for the job: query_data returns scraped data, query_elements returns Playwright locators you can click, fill, and scroll. Calling query_elements and then trying to read text fields off the response gives you locator objects, not values. If you need the data, use query_data; if you need to interact, use query_elements and drive the returned locators with the Playwright API.

Context: AgentQL official docs (Fetch a collection of elements): query_elements does not return data - unlike query_data for scraping, it returns one or more interactive Playwright locators for automation.

## Matched source
Source: Published skill
Original query: "query_elements returns locators, not data - use query_data for scraping"
Key terms: data, elements, locators, query, returns, scraping
