The codebase uses private Playwright APIs (_snapshotForAI(), _resolveSelector(), asLocator from internal module) with @ts-expect-error comments. These could break on Playwright updates. Create a src/playwright-compat.ts module that wraps these calls with version detection and fallback behavior, so Playwright upgrades only require changes in one place.
The codebase uses private Playwright APIs (_snapshotForAI(), _resolveSelector(), asLocator from internal module) with @ts-expect-error comments. These could break on Playwright updates. Create a src/playwright-compat.ts module that wraps these calls with version detection and fallback behavior, so Playwright upgrades only require changes in one place.