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

Quiz

Debugging Tests

Check yourself

  1. 1.You want to pause the test at a specific line to inspect the browser state. What do you use?
  2. 2.What is the environment variable that launches Playwright with the Inspector attached from the very start of the run?
  3. 3.What is the key difference between UI mode (--ui) and running with --debug?
  4. 4.What does Playwright Inspector show that makes it useful for debugging locator issues?
  5. 5.With the VS Code Playwright extension, how do you add a breakpoint and step through a test?
  6. 6.When is it best to use traces compared to running the test with --debug?
  7. 7.You listen to page.on('console') in a test. What types of messages can you capture?
  8. 8.What is the fastest way to get a locator for an element you can see in the browser during a debug session?