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

Quiz

Events

Check yourself

  1. 1.You want to capture a new tab that opens when a button is clicked. Why must you set up context.waitForEvent('page') BEFORE clicking?
  2. 2.What's the difference between page.on('dialog') and page.once('dialog')?
  3. 3.You want to log all console errors that occur during a test run. Which pattern is correct?
  4. 4.What is the key difference between context.waitForEvent('page') and page.waitForEvent('popup')?
  5. 5.How do you wait for a specific API request to be made, then verify its query parameters?
  6. 6.When should you use page.off('request', handler) after using page.on('request', handler)?
  7. 7.You want to verify the API response status after a form submission. Which is the correct approach?
  8. 8.A popup window opens when a payment button is clicked. Which event and object should you wait for?