What is the advantage of using CSS selectors over XPath locators in Selenium WebDriver?
-
A
CSS selectors are generally faster and more readable for attribute-based lookups
-
B
CSS selectors support text-content matching, which XPath does not
-
C
CSS selectors work only in Chrome while XPath is universal
-
D
CSS selectors can traverse up the DOM tree like XPath axes