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

Quiz

Library

Check yourself

  1. 1.You write a Node.js script that scrapes product prices from a competitor's website every night. Which Playwright package should you use?
  2. 2.In a library script, you create a browser and context, run your code, but forget to call context.close() and browser.close(). What happens?
  3. 3.In a library script you use console.assert(title === 'Example'). In @playwright/test you use await expect(page).toHaveTitle('Example'). What's the key behavioral difference?
  4. 4.You're building a browser automation tool for your team — not a test suite, but a tool that automates repetitive browser workflows. Which package is more appropriate?
  5. 5.What does @playwright/test add on top of the playwright library that you'd have to build yourself with the library?
  6. 6.In the library, you call chromium.launch() without any options. What type of browser does this start?
  7. 7.How do you install the playwright library (not the test runner) and its browsers?
  8. 8.A colleague suggests using @playwright/test for your automation script because 'the test runner has better error messages'. Is this a good reason?