Playwright error

TimeoutError: waiting for selector "..." to be visible

This comes from the older page.waitForSelector API. It's the same actionability issue as a locator timeout, just an older call shape.

Why this happens

How to fix it

  1. Migrate to locator-based auto-waiting: `await page.locator(selector).waitFor()` instead of `page.waitForSelector`
  2. If the element is inside an iframe, use `page.frameLocator()` instead of a top-level selector