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.