0.01
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Adds direct support for Angular specific locators and waiting strategies for use with Watir
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0
~> 3.0

Runtime

~> 6.12
 Project Readme

WatirAngular

This gem will automatically wait for Angular events after each action that is likely to change the DOM. (Using Watir::AfterHook class)

This gem adds direct locator support for all ng- specific tags, like:

browser.div(ng_model: 'foo')
browser.div(ng_class_even: 'bar')

Installation

Add this line to your application's Gemfile:

gem 'watir_angular'

And then execute:

$ bundle

Or install it yourself as:

$ gem install watir_angular

Usage

To have access to all ng-* locators and methods, simply require the gem

require "watir_angular"

To explicitly specify a wait for angular executions to complete

browser = Watir::Browser.new
WatirAngular.wait_for_angular(browser)

To automatically wait for angular executions to complete after each method

browser = Watir::Browser.new
WatirAngular.inject_angular_wait(browser)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/titusfortner/watir_angular.

License

The gem is available as open source under the terms of the MIT License.