mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
So, the following will work:
```
page.frameLocator('iframe').locator('span').or(page.frameLoactor('iframe').locator('div'))
```
The following will not work, because frame locators are not exactly the
same:
```
page.frameLocator('#iframe1').locator('span').or(page.frameLoactor('#iframe2').locator('div'))
```
Also improve the error message to be more readable and include the
locator.
Fixes #23697.
playwright-core
This package contains the no-browser flavor of Playwright.