[TS] 11. (10/26) Playwright. Установка. Методы и ассерты. Первые тесты (Boris S)
ts
2026_fall
Alex Panaev
https://playwright.dev/docs/locators#locate-by-css-or-xpath:
CSS and XPath are not recommended as the DOM can often change leading to non resilient tests. Instead, try to come up with a locator that is close to how the user perceives the page such as
role locators
or
define an explicit testing contract
using test ids.
Oct 31 21:00 (changed)
1