Menu

How to test if an AI agent can find your pricing page (Playwright, no LLM)
📰

How to test if an AI agent can find your pricing page (Playwright, no LLM)

DEV Community: ai·BotFumble·1 day ago
#EWZqx0af
#devtoai#devto#dev#pricing#await
Reading 0:00
15s threshold

If you want to know whether an AI agent can get from your homepage to your prices, you can check most of it with a plain Playwright script and no model at all. The script looks for a link whose accessible name contains "Pricing", clicks it, waits for a price to render, and reads the prices from the page text. If any step fails, a browser agent driving your site through the accessibility tree or the DOM will probably struggle at the same spot.

I ran a first version of this on five browser-infrastructure sites today (Steel, Browser Use, Anchor Browser, Hyperbrowser and Browserless). All five passed. The script itself failed three times before it gave honest answers, and those failures are the useful part of this post.

What the check covers

Three questions, in order:

Is anything covering the page on load? The script counts visible elements with role="dialog" or aria-modal="true" . A cookie wall or signup modal is the first thing an agent has to get past.

Is there a visible link named "Pricing"?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.