Blog · Case Study
Automating a test suite using an exploratory AI web agent looks like magic in a sandboxed demo. But what happens when you throw a raw LLM at a chaotic, real-world e-commerce platform like Flipkart?
We ran a benchmark test to find out. The goal was simple: Dismiss the initial login overlay, navigate through Beauty and Skincare categories, apply a specific brand filter, and select a product.
Here is the exact code-level breakdown of why brute-force AI test generation completely collapsed on a production DOM, and how providing deterministic LLM context saved the run.
Phase 1
In our first run, we used the official Playwright MCP server to let an LLM agent blindly navigate, snapshot, and guess its way through Flipkart's interface.
page.waitForTimeout(1000) sleep step.await this.beautyLink.click({ force: true });.locator.click: Timeout 5000ms exceeded error and crashing the automated test pipeline.Phase 2
For the second run, we flipped the paradigm. Instead of asking the AI to guess the workflow from a text prompt, we used AIR (Automation Intent Runtime) to capture the exact human interaction intent directly from the live browser session.
page.getByRole('button', { name: '✕', exact: true }). This cleared the viewport layout before any automated navigation began.href and title parameters) directly painted in the live DOM runtime. The generated Page Object Model accurately mapped the target elements on the first try.The Takeaway
This benchmark highlights a fatal flaw in current AI QA tools: LLM agents should not be used for exploratory web parsing on volatile production DOMs. It burns thousands of API tokens, causes massive latency, and generates flaky locators.
The solution is a split architecture:
By feeding the LLM an immutable ledger of human intent instead of forcing it to guess, you eliminate hallucinations, protect your token context window, and build automated suites that survive real-world CI/CD pipelines.