watir-timecop
Makes Timecop compatible with Watir.
The problem is that internally Watir uses Time.now
when it waits for element presence/absence. Combined with Timecop, waiting gets broken because Time.now
may always returns the same value. This gem implements custom timer for Watir, which uses simple counter instead.
Installation
Add this line to your application's Gemfile:
gem 'watir-timecop'
And then execute:
$ bundle
Or install it yourself as:
$ gem install watir-timecop
Usage
Just require gem after Watir. That's all!
require 'watir-webdriver'
require 'watir-timecop'
Contributing
- Fork it ( http://github.com/p0deje/watir-timecop/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright
Copyright (c) 2016 Alex Rodionov. See LICENSE.txt for details.