Babu,

I can see why you are confused as the value returned from the method
Watir::IE::VERSION does not match the version of the gem.

Watir::IE::VERSION gives you the version of the IE Browser.
Watir::VERSION gives you the version of Watir.

That said, here are some things to check:
1. What versions of the gem are installed? You can have multiple
versions.
2. Cleanup any unneeded version
3. See what  is reported using Watir::IE:VERSION
4. See what is reported using Watir::VERSION

Lets start with step 1.
Use the gem list command to see what versions are installed. For
example:
    C:\Users\Joe\workspace>gem list watir

    *** LOCAL GEMS ***

    watir (1.9.2, 1.6.5)
    watir-webdriver (0.3.5, 0.3.2)

Notice that it reports on any gem that contaisn "watir" in its name.

Step 2.
Now use the gem cleanup command to remove the old version.
    C:\Users\Joe\workspace>gem cleanup watir
    Cleaning up installed gems...
    Attempting to uninstall watir-1.6.5
    Successfully uninstalled watir-1.6.5
    Clean Up Complete

Recheck the versions
    C:\Users\Joe\workspace>gem list watir

    *** LOCAL GEMS ***

    watir (1.9.2)
    watir-webdriver (0.3.5, 0.3.2)
    watirworks (0.1.4)

Step 3.
Now that we know that only the Watir (1.9.2) em is installed lets look
at what Watir::IE::VERSION returns.
    C:\Users\Joe\workspace>irb
    irb(main):001:0> require 'watir'
    => true
    irb(main):002:0> Watir::IE::VERSION
    (irb):3: warning: toplevel constant VERSION referenced by
Watir::IE::VERSION
    => "1.8.7"

Hey that's the version of IE I have installed. Cool!

So now lets get the version of Watir:
    C:\Users\Joe\workspace>irb
    irb(main):001:0> require 'watir'
    => true
   irb(main):003:0> Watir::VERSION
   => "1.9.2"

And of course that matches the version of the installed gem!

Joe

On Oct 10, 11:49 am, Babu <[email protected]> wrote:
> i have already installed watir 1.6.5 in my gem list.
> But when i see the watir version as "ruby -e 'require "watir"; puts
> Watir::IE::VERSION'"
> it is showing 1.4.1
> how can i update to 1.6.5
> since i am not getting all the IE tags in 1.4.1 which is present in
> 1.6.5

-- 
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]

Reply via email to