IKivan-kozenko -aqa
Try yourself as a QA tester
Back to topic

Quiz

Frames

Check yourself

  1. 1.Your checkout page embeds a payment form inside an iframe from a payment provider. You try page.getByLabel('Card number').fill('4242...') but Playwright throws 'No element found'. Why, and how do you fix it?
  2. 2.How do you get a Frame object by its name attribute using the Playwright API?
  3. 3.What is the key difference between page.frameLocator() and page.frame()?
  4. 4.How do you interact with an element inside a nested iframe (an iframe inside an iframe)?
  5. 5.You need to get the URL of a frame to verify it loaded the correct page. Which API do you use?
  6. 6.How do you wait for a specific iframe to finish loading before interacting with its contents?
  7. 7.What does page.frames() return?
  8. 8.You want to run JavaScript inside a specific iframe to read a value from its window object. Which approach is correct?