WatirCss
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.
Installation
Add this line to your application's Gemfile:
gem 'watir_css'And then execute:
$ bundleOr install it yourself as:
$ gem install watir_cssUsage
require 'watir_css'Specs
WatirCss will run watirspecs from Watir project:
$ bundle exec rake specContributing
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.