It seems there are some compatibility issues here with some of the win32utils. Try updating your win32-api gem, win32-process and the windows-pr gem as well. Same instructions that Aidy mentioned before with those gems.
Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Thu, Feb 5, 2009 at 6:51 AM, aidy lewis <[email protected]>wrote: > > This will work > > require 'watir' > Watir::Browser.default = "ie" > @browser ||= Watir::Browser.new > > > Aidy > > 2009/2/5 Jaz <[email protected]>: > > > > Hi! > > > > Thanks for answering so fast Aidy > > Unfortuneatly it still doesn't work =( > > > > (Going crazy soon...) > > > > /jasmin > > > > On Feb 5, 1:59 pm, aidy lewis <[email protected]> wrote: > >> gem list -r win* > >> > >> gem update windows-api -y > >> > >> Aidy > >> > >> 2009/2/5 Jaz <[email protected]>: > >> > >> > >> > >> > >> > >> > How do I do that? > >> > >> > On Feb 5, 12:36 pm, aidy lewis <[email protected]> wrote: > >> >> At a guess try updating your windows api gem > >> > >> >> Aidy > >> > >> >> 2009/2/5 Jaz <[email protected]>: > >> > >> >> > Hi! > >> > >> >> > Recently installed ruby to use watir, and I get a strange error > when I > >> >> > execute the steps in "Watir in 5 minutes" > >> >> >http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes > >> > >> >> > These are the steps I follow: > >> > >> >> > 1. require "watir" > >> > >> >> > 2. ie = Watir::IE.new > >> > >> >> > When I perform step 2 I get the following error: > >> > >> >> > Win32::API::Error: Attempt to format message failed > >> >> > from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/ > >> >> > api.rb:333 in 'initialize' > >> >> > from C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/ > >> >> > api.rb:333 in 'new' > >> >> > . > >> >> > . > >> >> > . > >> >> > .. and the message continues. > >> >> > I can write the whole message down if necessary. It's really long > =(- Hide quoted text - > >> > >> >> - Show quoted text -- Hide quoted text - > >> > >> - Show quoted text - > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
