Тёмный

Playwright selectors in-depth for beginners (with best practices and examples) 

AutomateTogether
Подписаться 869
Просмотров 14 тыс.
50% 1

An in-depth look at selectors with Playwright for beginners. Consists of a general intro, best practices and practical examples.
Goals:
- Learn how to find & test selectors including
a. CSS selectors
b. XPath selectors
c. Playwright text selectors
- Learn selector best practices to
a. Distinguish between solid and brittle selectors
b. Optimise existing selectors when possible
Resources shown:
- danube-webstor...
- playwright.dev
- github.com/che...
Machine specs: MacBook Pro (13-inch, M1, 2020), macOS Big Sur (11.5.2)
Danube credentials: user@email.com / supersecure1
Next steps:
- Try inspecting elements on Danube and coming up with different selectors for the same item. Then test them and verify they work.
- Research CSS selector syntax (XPath can be helpful, too) and try to understand its basic logic.
Additional resources:
- The excellent guide to selectors on Playwright’s official docs: playwright.dev...
- I sometimes post automation threads on Twitter @rag0g (get in touch!)
- My guide on selectors on Checkly’s open-source guides: www.checklyhq....

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 14   
Далее
Record Playwright scripts using Codegen
22:40
Просмотров 3,8 тыс.
How Strong is Tin Foil? 💪
00:26
Просмотров 41 млн
ФОКУС -СВЕТОФОР
00:32
Просмотров 267 тыс.
The Four Futuristic Features Of Playwright
31:22
Просмотров 11 тыс.
Playwright Tutorial - Locators and Selectors (NodeJS)
20:04
Playwright Browser Automation and Testing
45:40
Просмотров 7 тыс.
Playwright API Testing Demo for Beginners
34:31
Просмотров 35 тыс.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Automating a web chat with Playwright
18:18
Просмотров 1,3 тыс.
How Strong is Tin Foil? 💪
00:26
Просмотров 41 млн