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

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.

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