I have the following problem:
Script:
require 'rubygems'
require 'watir'
brow = Watir::Browser.new
site = '
http://www.tulugar.com'
brow.goto(site)
Displays the following error:
"undefined method 'goto' <Watir::IE0X2c3b368> for # (NoMethodError)"
The environment variable is watir_browser = ie
Watir 1.6
I appreciate your help
On 6 feb, 08:59, anna barbara ostrowska <
ab.ostrow...@gmail.com>
wrote:
> This has helped:
> gem update --system
> gem install windows-pr
> gem install watir
> Thanks.
>
> 2009/2/3 Bret Pettichord <
b...@pettichord.com>:
>
>
>
> > Not sure. I did notice that you have some othermethodcalls to the
> > browser where you are trapping the NoMethodError. Why are you doing that?
>
> > Also, it might help us if you could create a simple script that
> > reproduces this problem. I personally don't have issues with the
> > framework you've developed, but I think it is distracting some people
> > and keeping them from helping you with your problem.
>
> > Can you isolate the problem to a short procedure that doesn't use your
> > framework (open-coding).
>
> > Bret
>
> > anna barbara ostrowska wrote:
> >> Yes, sure
>
> >> Loaded suite All Tests
> >> Started
> >> EE
>
> >> Finished in 0h 0m 0s
>
> >> 1) Error:
> >> test_send_public_gift(TC_Send_Private_Gift):
> >> NoMethodError:undefinedmethod`goto' for #<Watir::IE:0x3294480>
> >> C:\Documents and Settings\anna\Desktop\ruby\Gifts/Wayn/user.rb:12:in `login'
>
> >> C:\Documents and Settings\anna\Desktop\ruby\Gifts\PrivateGift.rb:15:in `setu
> >> p'
>
> >> 2) Error:
> >> test_send_public_gift(TC_Send_Private_Gift):
> >> NoMethodError:undefinedmethod`close' for #<Watir::IE:0x3294480>
> >> C:\Documents and Settings\anna\Desktop\ruby\Gifts\PrivateGift.rb:19:in `tear
> >> down'
>
> >> 1 tests, 0 assertions, 0 failures, 2 errors
>
> >> 2009/2/2 Bret Pettichord <
b...@pettichord.com>:
>
> >>> Can you send us a stack trace?
>
> >>>> Nomethoderror: undefiniedmethod'goto' for # <Watir::IE:0x3294480>