Closed
Description
openedon Aug 19, 2020
Let us know what functionality you'd like to see in Playwright and what is your use case:
To create a test with an iframe that causes the page to reload, you need to re-reference the frame per reload.
await page.goto("http://printingforless.com/");
const frame = await (
await page.waitForSelector("#footerFrame")
).contentFrame();
await frame.click("text=Announcements");
const frame2 = await (
await page.waitForSelector("#footerFrame")
).contentFrame();
await frame2.click("text=Booklets");
const frame3 = await (
await page.waitForSelector("#footerFrame")
).contentFrame();
await frame3.click("text=Calendars");
It would be nice to have the frame lazy loaded instead:
await page.goto("http://printingforless.com/");
const frame = await page.lazyContentFrame("#footerFrame");
await frame.click("text=Announcements");
await frame.click("text=Booklets");
await frame.click("text=Calendars");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment