Playwright Python - Inner Text Locator

preview_player
Показать описание
In this video you'll learn how to locate web elements using their inner text.

Matching by text always normalizes whitespace, even with exact match. For example, it turns multiple spaces into one, turns line breaks into spaces and ignores leading and trailing whitespace.

🔧 When to use?
Playwright recommends using text locators to find non interactive elements like div, span, p, etc. For interactive elements like button, a, input, etc. use role locators.

Playwright is a modern, fast and reliable browser automation tool from Microsoft that enables testing and automation across all modern browsers including chromium, firefox and webkit.
Рекомендации по теме
Комментарии
Автор

Any coupons for the course? Thank you!

JOMELLO