Answers for "difference between xpath and css selector"

CSS
1

difference between xpath and css selector

- We can create custom locators with both of them

- CSS Selector:
 - Works only one way. We can only go from
   parent to child using CSS Selector.
 - CssSelector is technically faster than XPATH.

- XPATH:
 - Works both ways. We can go both from parent to child,
   and child to parent using XPATH.
 - We can work with displayed TEXTS.
Posted by: Guest on December-04-2020
1

difference between xpath and css selector

- We can create custom locators with both of them

- CSS Selector:
 - Works only one way. We can only go from
   parent to child using CSS Selector.
 - CssSelector is technically faster than XPATH.

- XPATH:
 - Works both ways. We can go both from parent to child,
   and child to parent using XPATH.
 - We can work with displayed TEXTS.
Posted by: Guest on December-04-2020

Code answers related to "difference between xpath and css selector"

Browse Popular Code Answers by Language