How Verdex Sees Inside Iframes: Event-Driven Multi-Frame Support
dev.to·3d·
Discuss: DEV
🏔️Alpine.js
Preview
Report Post

TL;DR: Verdex initially treated iframes as invisible—snapshots captured the <iframe> tag but none of the content inside. This made Stripe checkouts, PayPal buttons, and embedded widgets completely opaque to the system. I rebuilt the bridge injection layer to support per-frame isolated worlds with lazy snapshot expansion, using Playwright’s event-driven patterns. The result: nested iframe content appears in snapshots with frame-qualified refs (f1_e3), interactions route to the correct frame automatically, and the entire MCP API stayed identical.

GitHub: https://github.com/verdexhq/verdex-mcp

The Problem: When Your Test Tool Can’t See the Payment Form

The first time I tried to use Verdex on a real checkout flow, I got a snaps…

Similar Posts

Loading similar posts...