Tom,
If you try to execute each line of your script through irb, what kind of
results are you seeing? I was able to execute your script without issue on
my machine here (Windows 7, Ruby 1.8.6, Watir 1.6.5). Part of me is
wondering if what you're running into is some sort of permissions issue.
Here's a copy of my irb session (note: I was also able to run things in a
script without issue):
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\jason>irb
irb(main):001:0> require "watir"
=> true
irb(main):002:0> browser = Watir::Browser.new
=> #<Watir::IE:0x3ae81a4 url="about:blank" title="">
irb(main):003:0> browser.goto("
http://202.36.68.44/")
=> 1.683
irb(main):004:0> puts browser.url
http://202.36.68.44/
=> nil
irb(main):005:0>
> --
> You received this message because you are subscribed to the Google
> Groups "Watir General" group.
> To post to this group, send email to
watir-...@googlegroups.com
> Before posting, please read the following guidelines:
>
http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to watir-general-
>
unsub...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/watir-general