API …
Locators & DOM

Locator cheat sheet

CSS, XPath functions and axes, Playwright built-in locators, every key method and Selenium, searchable.

Practice tasks

  • Find three XPath functions that have no CSS equivalent and use each one in the Locator Lab.
  • List every Playwright method that waits automatically and every one that does not.
  • Pick five Selenium waits and write the Playwright equivalent next to them.
  • Use the search box to find everything that mentions “shadow” and compare how each tool handles it.

More Locators & DOM practice