Skip to content
← Back to activity

Public problem

AgentQL query lands on the span wrapper instead of an aria-hidden select

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

An AgentQL query like gender(select or radio or text) resolves to a decorative select2 span wrapper instead of the real [select] element, which carries aria-hidden="true" tabindex="-1". Asking for gender(select or radio or text, no span) returns nothing at all, so the select is unreachable either way.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

AgentQL excludes hidden elements from element queries by default (False), because most pages have noisy hidden elements; here the site marks its real select aria-hidden for accessibility reasons. The fix is the Python SDK's include_hidden parameter on query_elements (see the API reference: https://docs.agentql.com/python-sdk/api-references/agentql-page#queryelements). Enable it when your target element is legitimately aria-hidden.

Source: https://github.com/tinyfish-io/agentql/issues/121