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

Quiz

Dialogs

Check yourself

  1. 1.Your app shows a window.confirm() dialog when clicking Delete. The test calls .click() but the order is never deleted. What's the most likely cause?
  2. 2.Why must you register the page 'dialog' event handler BEFORE the action that triggers the dialog?
  3. 3.What does dialog.message() return?
  4. 4.Your app shows a prompt() dialog asking users to type a name. How do you simulate the user typing 'Test Order' and clicking OK?
  5. 5.What is the difference between dialog.accept() and dialog.dismiss()?
  6. 6.What happens if a dialog appears during a test and no 'dialog' event handler is registered?
  7. 7.How do you verify the text of an alert dialog message inside a dialog handler?
  8. 8.You want to handle only the next dialog that appears, not all future ones. What do you use?