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

Quiz

Generating tests

Check yourself

  1. 1.You're writing a test for a new 'Create order' page you've never touched before. Which is the fastest way to get the right locator for the Save button?
  2. 2.What two windows does codegen open when you run 'npx playwright codegen'?
  3. 3.In what priority order does codegen pick locators when you click an element?
  4. 4.What can you record as assertions in codegen without writing code manually?
  5. 5.You need a locator for one specific element in an existing test — not a full recording. How do you use codegen for this?
  6. 6.When is generated code from codegen NOT ideal and requires manual editing?
  7. 7.What is the key difference between recording a test with codegen versus writing locators manually?
  8. 8.How do you start codegen to record a test for a specific URL?