fremorie / selector-finder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

selector-finder

screencast 2023-01-17 15-01-48

What is it?

A devtools extension for Google Chrome that finds CSS selectors for your E2E tests.

Currently it supports only data-attributes, ids and (as a last resort) HTML tags.

CSS classes are deliberately excluded, as they are not recommended to use in E2E tests.
Modern websites use CSS assets optimization techniques, which results in CSS classes changing all the time.

e2e tests - Google Search 2023-01-17 15-12-28

Sometimes it's impossible to find a unique selector for the element. Be careful when using such selectors.

e2e tests - Google Search 2023-01-17 15-14-35

About

License:MIT License


Languages

Language:JavaScript 78.1%Language:CSS 13.5%Language:HTML 8.4%