semperos/clj-webdriver — Issue #34: Prefer CSS to XPath
Author: semperos
Created: 2012-02-02 18:31:34+00:00
State: open

Per advice given on the Selenium-WebDriver mailing list, CSS should be preferred to XPath while using WebDriver.

Here is the official W3C spec: http://www.w3.org/TR/css3-selectors/

Apparently WebDriver will fall back to Sizzle.js in certain rare situations, but the above standard should be followed.

TODO: Rewrite internal functions that auto-generate XPath to use CSS queries.