I removed include Watir now my script is:

require 'watir'
require 'rubygems'
#require "win32ole"


ie = Watir::IE.new
ie.goto("http://google.com";)

ie.text_field(:name, "q").set("watir")
ie.button(:name, "btnG").click


I still get the same error message. I am using watir 1.4.1. Below is
my ruby version

C:\ruby>ruby --version
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

I have done gem update prevsiously, gem system updates but nothing
works. Any ideas on what I can do to get a basic script up and running
using watir?


On Nov 9, 10:52 pm, Raveendran P <jazzezr...@gmail.com> wrote:
> 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.Raveendranhttp://raveendran.wordpress.com- 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 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