how to install prev versions of watir

186 views
Skip to first unread message

gary

unread,
Nov 15, 2016, 10:03:08 AM11/15/16
to Watir General
so, i had to spin up a new vm for some regression tests and went through the normal installation process using gem install watir  and behold we now have the wonderful version 6... unfortunately nothing seems to work in my scripts now, watir-webdriver is depracated, doesn't know what Time is, the list no doubt goes on, anyway what I'm hoping to find out is how to install the previous version of watir so i can continue using watir-webdriver. I intend getting everything upgraded in the future but as many of you will no doubt appreciate "now is not the time". does anyone out there know how i can install a previous version of watir so i can continue to use watir-webdriver? thanks in advance, G

Raja gopalan

unread,
Nov 15, 2016, 10:33:27 AM11/15/16
to Watir General
Hi, watir-webdriver is not deprecated, watir-classic is deprecated. If you install watir, it automatically install watir-webdriver. 

If you use 'gem list watir' it doesn't display watir-webdriver this time. But it's default anyway. 

But if you still want to go for old version, then you can do by

gem install watir -v 5.0.0
gem install watir-classic 

Titus Fortner

unread,
Nov 15, 2016, 10:44:13 AM11/15/16
to Watir General
The watir-webdriver gem is also deprecated.
Use watir > 6.0 (which is based on the watir-webdriver code)

The latest version of Watir attempts to use monotomic time where supported and it looks like we grabbed the wrong Time class for where it is not supported.

I just updated and pushed the fix to 6.0.2. You should be able to just bundle update now.

Titus

Raja gopalan

unread,
Nov 15, 2016, 10:52:18 AM11/15/16
to Watir General
What's the meaning of "monotomic time? " If watir is using watir-webdriver code, then what do you mean by watir-webdriver is deprecated? You meant to say it doesn't come as a separate gem? Is that what you meant? 

Titus Fortner

unread,
Nov 15, 2016, 11:18:59 AM11/15/16
to Watir General
Monotonic time measures time passed on the system the code executes on. It is useful when users otherwise monkey patch the Time class for their tests. More information: https://github.com/watir/watir/issues/486

And sorry, I forgot to post about Watir 6.0 in this channel last week. Hopefully my new post about it clarifies things.

Thanks!
Titus

Raja gopalan

unread,
Nov 15, 2016, 12:14:41 PM11/15/16
to Watir General
Ok thank you. 

gary

unread,
Nov 16, 2016, 10:29:28 AM11/16/16
to Watir General
great thanks, btw running watir returns the following message so i assume it's on the cards:

C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require': `require "watir-webdriver"` is deprecated. Please, use `require "watir"`.

Have found a workaround for Time.now which is great but also found that watir-scroll doesn't appear to work. I reckon I'll wait a couple of months and wait for things to catch up ;-)
Thanks again

gary

unread,
Nov 16, 2016, 10:35:24 AM11/16/16
to Watir General
awesome, thanks

Titus Fortner

unread,
Nov 16, 2016, 10:48:20 AM11/16/16
to Watir General
File a bug on watir-scroll. Alex just needs to switch reference from watir-webdriver to watir.

gary

unread,
Nov 16, 2016, 11:00:27 AM11/16/16
to Watir General
will do thanks

Alex Rodionov

unread,
Nov 17, 2016, 2:55:40 AM11/17/16
to Watir General
watir-scroll is fixed to work with Watir 6 in v0.3.0
Reply all
Reply to author
Forward
0 new messages