What is the primary difference between the XPath and CSS selector?

selenium

What is the primary difference between the XPath and CSS selector?

1
Answers

Replies

There is one most important difference between XPath and CSS selector.


XPath allows you to traverse both forward and backward while CSS selector allows you to traverse only forward.


XPath engines are different in each browser thus making them inconsistent.


Xpath engines are more complex and hence hard to read,

 
 

If you want to unleash your potential in this competitive field, please visit the selenium course page for more information, where you can find the selenium tutorials and selenium frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.