Difference between Xpath and CSS | Selenium Forum
G
G>Pavankumar Posted on 24/12/2019

1) What is the difference between Xpath and CSS

2) Which one is faster and why?

3) What are browser engines?

4) Does each and every browser have different browser engines how can we know that?

 

thanks


A
Ashish Thakur Replied on 09/01/2020

XPaths and CSS Selectors have their own pros and cons. To understand the difference and their working, I would suggest you watch Module 13.

Regarding question 3 and 4, Different browsers are based on different engines like Mozilla is based on Gecko, Chrome is based on Chromium.