Per http://wiki.openqa.org/display/WTR/include+Watir Don't use 'include'
On Mon, Nov 9, 2009 at 3:49 PM, tester86 <[email protected]> wrote: > > I am trying to run a watir script: > > require 'watir' > include Watir > > ie = Watir::IE.new > ie.goto("http://google.com") > > ie.text_field(:name, "q").set("watir") > ie.button(:name, "btnG").submit > > when I run it from command line ruby filename.rb I get the following > error message: > > c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing': > unknown proper > ty or method `document' (WIN32OLERuntimeError) > HRESULT error code:0x800706ba > The RPC server is unavailable. from c:/ruby/lib/ruby/ > site_ruby/1.8/watir.rb:1336:in `document' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:754:in > `getContainerContents' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:778:in > `getObject' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in > `initialize' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in > `text_field' > from script1.rb:6 > > Any Ideas.....? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
