difference between xpath and css selector

Solutions on MaxInterview for difference between xpath and css selector by the best coders in the world

showing results for - "difference between xpath and css selector"
Emilie
19 Apr 2020
1- We can create custom locators with both of them
2
3- CSS Selector:
4 - Works only one way. We can only go from
5   parent to child using CSS Selector.
6 - CssSelector is technically faster than XPATH.
7
8- XPATH:
9 - Works both ways. We can go both from parent to child,
10   and child to parent using XPATH.
11 - We can work with displayed TEXTS.
similar questions
queries leading to this page
difference between xpath and css selector