xpath vs css selector example code

xpath vs css selector example code

xpath vs css selector example

xpath vs css selector example in css

- 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.

By Manish Salunke In css -

Tags:

css

Sponsors

themeforest
pluralsight
Invest in you. Online courses as low as $11.99