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

Quiz

Pages

Check yourself

  1. 1.A button click opens a new browser tab. How do you get a reference to that new tab?
  2. 2.Why must you set up context.waitForEvent('page') BEFORE clicking the link, not after?
  3. 3.What is the difference between page.waitForEvent('popup') and context.waitForEvent('page')?
  4. 4.What does page.waitForURL('/dashboard') do?
  5. 5.What does context.pages() return?
  6. 6.You need to test real-time sync between two browser tabs (same session). What is the correct approach?
  7. 7.After your test opens a new tab and finishes, does Playwright automatically close it?
  8. 8.A page navigation triggers a redirect. How do you correctly wait for the final URL to be /dashboard?