A CSS based locator engine for watir.
By default Watir translates location approaches into XPath. This gem will replace XPath calls with CSS calls where possible.
Some locator strategies supported by Watir cannot be reimplemented with watir_css. In such cases, it falls back to the XPath implementation in Watir.
Add this line to your application's Gemfile:
gem 'watir_css'
And then execute:
$ bundle
Or install it yourself as:
$ gem install watir_css
require 'watir_css'
WatirCss will run watirspecs from Watir project:
$ bundle exec rake spec
Bug reports and pull requests are welcome on GitHub at https://github.com/watir/watir_css. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.