On Wed, Aug 1, 2012 at 8:26 AM, Sohail Mirza <[email protected]> wrote: > What are the different versions of Watir available?
Take a look at the list: https://rubygems.org/gems/watir/versions I think versions from 3.0 will be listed here: https://rubygems.org/gems/watir-classic/versions > i just tried following and somehow come to know that watir version 1 is installed on my machine. Is it the latest one? No. The latest version of watir gem is 3.0: http://watir.com/2012/04/24/watir-3-released/ > C:\>ruby -e 'require "watir"; puts Watir::IE::VERSION' > -e:1:in `<main>': uninitialized constant Watir::IE::VERSION (NameError) You did not get Watir version, but an error message. Looks like above code works only on ruby 1.8.6 for older Watir versions. C:\Users\zeljko>ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] C:\Users\zeljko>gem search watir *** LOCAL GEMS *** commonwatir (1.6.5) firewatir (1.6.5) watir (1.6.5) C:\Users\zeljko>ruby -e 'require "rubygems"; require "watir"; p Watir::IE::VERSION' "1.6.5" C:\Users\zeljko>ruby -v ruby 1.8.7 (2012-06-29 patchlevel 370) [i386-mingw32] C:\Users\zeljko>gem search watir *** LOCAL GEMS *** commonwatir (1.8.1) firewatir (1.8.1) watir (1.8.1) C:\Users\zeljko>ruby -e 'require "rubygems"; require "watir"; p Watir::IE::VERSION' -e:1: warning: toplevel constant VERSION referenced by Watir::IE::VERSION "1.8.7" C:\Users\zeljko>ruby -v ruby 1.9.3p194 (2012-04-20) [i386-mingw32] C:\Users\zeljko>gem search watir *** LOCAL GEMS *** commonwatir (3.0.0) watir (3.0.0) watir-classic (3.0.0) C:\Users\zeljko>ruby -e 'require "rubygems"; require "watir"; p Watir::IE::VERSION' -e:1:in `<main>': uninitialized constant Watir::IE::VERSION (NameError) Željko -- filipin.eu -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
