Hi, Add first line --> require 'rubygems' Remove line no.2 --> include Watir
I hope it works now. If its not working then Please provide more details about Watir Verison and Ruby version. Thanks On Tue, Nov 10, 2009 at 3:19 AM, tester86 <sagar.am...@gmail.com> 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.....? > > > -- Regards, P.Raveendran http://raveendran.wordpress.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---