## TL;DR

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.

## Steps

1. 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.

## When to use

You are seeing this: Pick the right method for the job: query_data returns scraped data, query_elements returns Playwright locators you can click, fill, and scroll. Use this skill when you run into "query_elements returns locators, not data - use query_data for scraping".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
