Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

79
Views
Locating an element in any iframe using Playwright

I'm using Playwright to do some end to end automation on a web application composed of multiple nested iframes. For now, I decompose the multiple iframes using frameLocator and then I try to locate an element in the desired iframe:

const firstFrame = await page.frameLocator("#firstIframe");
const secondFrame = await firstFrame.frameLocator("#secondIframe");
const element = await secondFrame.locator("input").fill("Some text")

Is there a way to locate an element in any iframe so I don't need to decompose all the nested iframes?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!