whoami 26 Posted May 29, 2015 Report Share Posted May 29, 2015 According to a research I made, CSS selectors are better than Xpath.What do you guys think?, They say is more accurate and for a better performance. Quote Link to post Share on other sites
beatngu 65 Posted May 30, 2015 Report Share Posted May 30, 2015 Overall xpath is a winner but it also comes down to the person using it.There are both people who favor css over xpath and the other way around so it depends who you ask. Finding Elements By ID and ClassBrowser | CSS | XPathInternet Explorer 8 | 23 seconds | 22 secondsChrome 31 | 17 seconds | 16 secondsFirefox 26 | 22 seconds | 22 secondsOpera 12 | 17 seconds | 20 secondsSafari 5 | 18 seconds | 18 seconds Finding Elements By TraversingBrowser | CSS | XPathInternet Explorer 8 | not supported | 29 secondsChrome 31 | 24 seconds | 26 secondsFirefox 26 | 27 seconds | 27 secondsOpera 12 | 25 seconds | 25 secondsSafari 5 | 23 seconds | 22 seconds Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.