Project

watir_css

0.0
No commit activity in last 3 years
No release in over 3 years
By default Watir converts calls into XPath; this gem will replace XPath calls with CSS calls where possible.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0
~> 3.0

Runtime

>= 6.8.1, ~> 6.8
 Project Readme

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:

$ bundle

Or install it yourself as:

$ gem install watir_css

Usage

require 'watir_css'

Specs

WatirCss will run watirspecs from Watir project:

$ bundle exec rake spec

Contributing

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.