> Markdown version of [/events/conference-india-2026/sessions/2060-the-illusion-of](https://www.wearedevelopers.com/events/conference-india-2026/sessions/2060-the-illusion-of). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # The Illusion of Green: Why AI-Generated Browser Automation Tests Pass Locally but Fail in CI - **Event:** Conference India 2026 ## Description Selenium doesn't mock its own tests. It executes them against real browser and OS combinations. This exhaustive approach ensures the framework is reliable before code merges. When a test fails on CI(Continuous Integration), debugging it teaches you how the browser automation ecosystem actually behaves. Over years contributing to Selenium, certain failure patterns emerged consistently: browser environment mismatches, cross-browser behaviour differences, spec interpretation gaps across browser vendors, inconsistencies between headless and headed modes, element synchronization issues (waiting for elements to be present, visible, or interactable), CI-specific constraints (CPU, memory, network variability), and test isolation failure. These problems aren't new. But AI-assisted testing makes them common again since the implicit context that comes from real debugging is missing. As a result, generative AI churns out tests that pass locally but fail in CI. When the CI error gets pasted back to AI, it regenerates code without understanding the root cause, often sending things in a different or frustrating direction. AI isn't at fault, it's simply skipping the learning journey developers take when debugging. This talk breaks down each failure category and surfaces the implicit knowledge behind them, the kind that usually takes years to build. With this, the patterns become recognizable almost immediately and applicable to your own tests. More importantly, you will learn how to bring this context into AI-assisted testing so the same failures don’t keep resurfacing. ## Speaker ### [Puja Jagani](https://www.wearedevelopers.com/@puja-jagani) Lead Engineer, OpenSource Program Office, Browserstack ## Related talks at this congress - [Built-In AI in the Browser: Practical Capabilities for Modern Web Apps](https://www.wearedevelopers.com/events/conference-india-2026/sessions/2045-built-in-ai-in-the) — Piyush Gupta - [Your AI Wrote the Code. Who Vouches for It?](https://www.wearedevelopers.com/events/conference-india-2026/sessions/2036-your-ai-wrote-the) — Siddharth Joshi - [Teaching AI Coding Agents to Build It Right the First Time](https://www.wearedevelopers.com/events/conference-india-2026/sessions/1995-teaching-ai-coding) — Sajeetharan Sinnathurai - [AI Is the Easy Part: Why Faster Engineers Don't Make Faster Businesses](https://www.wearedevelopers.com/events/conference-india-2026/sessions/1975-ai-is-the-easy-part) — Bharat Sharma ## Watch remotely Can’t make it to Bengaluru? Watch this session live with Pro. You also get: - All full videos, bookmarks, and playlists - World Congress livestreams [See pricing](https://www.wearedevelopers.com/pricing) ## Links - [Get tickets](https://www.wearedevelopers.com/conference-india/tickets)