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

Quiz

Extensibility

Check yourself

  1. 1.Your team uses data-qa attributes for all test identifiers instead of data-testid. What's the simplest way to make page.getByTestId() work with data-qa?
  2. 2.What two functions must a custom selector engine define?
  3. 3.Where must you register a custom selector engine in a Playwright Test setup, and why?
  4. 4.What is the benefit of registering a custom engine with { contentScript: true }?
  5. 5.After registering a custom engine named 'component', how do you use it in a locator?
  6. 6.When is building a custom selector engine actually warranted?
  7. 7.Can you chain a custom selector engine locator with built-in locators?
  8. 8.Where in the code does the custom selector engine's query() function actually execute?