How is CSS selector different from XPath based locators?

956    Asked by ShantellRoye in QA Testing , Asked on Jan 11, 2020
Answered by Shantell Roye

CSS selectors are readable more easily than XPath locators.

Support is consistent for CSS selectors across different web browsers, this scenario is not with XPath engines.

CSS selectors are quicker than XPath.

For distinct observations, Selenium “best practices” recommend the use of CSS selectors over XPath.



Your Answer

Interviews

Parent Categories