I solved the problem by doing a "gem uninstall win32-api" first, and
then to install it again with "gem install win32-api".
What I noticed was that there were 2 versions of win32-api installed.
I removed them both.

On Feb 27, 1:32 pm, JArkelen <johnvanarke...@gmail.com> wrote:
> I have the same problem: I have 2 vmware images with the exact same
> setup. I try to run this test:
>
> require 'rubygems'
> require 'watir'
>
> Watir.options_file = 'c:\\temp\\options.yml'
> browser = Watir::Browser.new
> browser.goto "http://www.cnn.com";
> browser.close
>
> It works on one image, the other image says "undefined method 'goto'
> <Watir::IE0X2c3b368> for # (NoMethodError)"
> I also tried to install this:
>
> gem update --system
> gem install windows-pr
> gem install watir
>
> But to no effect unfortunately. Any help would be great!
>
> Cheers,
> John
>
> On Feb 25, 1:00 pm, Henry <henrytej...@gmail.com> wrote:
>
> > 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?
>
> > > >>> ab.ostrow...@gmail.com wrote:
>
> > > >>>> Hi there!
>
> > > >>>>     def setup
> > > >>>>         @browser = Wayn::BrowserFactory.create
> > > >>>>         @user = Wayn::User.new(@browser)
> > > >>>>         @user.login('tomcio', 'haslo')
> > > >>>>     end
>
> > > >>>> where
>
> > > >>>>     class BrowserFactory
> > > >>>>         def BrowserFactory.create
> > > >>>>             browser = Watir::Browser.new
>
> > > >>>>             begin
> > > >>>>                 browser.speed = :zippy
> > > >>>>                 browser.bring_to_front
> > > >>>>             rescue NoMethodError
> > > >>>>             end
>
> > > >>>>             browser
> > > >>>>         end
> > > >>>>     end
> > > >>>> end
>
> > > >>>> I have installed:
> > > >>>> Ruby Version 1.8.6
> > > >>>> Installer Version 186-27
> > > >>>> firewatir  1.6.2
> > > >>>> commonwatir 1.6.2
>
> > > >>>> I have following error:
> > > >>>> Nomethoderror: undefiniedmethod'goto' for # <Watir::IE:0x3294480>
>
> > > >>>> I run the same script on another machine and it works therefore I 
> > > >>>> dont
> > > >>>> know whats cousing this error.
> > > >>>> Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@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-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to