Hi, I have written an script like:- 1)Open Webbrowser 2)Open Google.com 3)Now setText on the textBox then 4)Click on the Button.
my problem is that Text is not being set into the TextBox, and if i am runnig this Script on the other system, it is working properly. I have reinstall Ruby many times but problem still persist. my Script is: ---------------------------- require "watir" url="www.google.co.in" ie=Watir::IE.new ie.bring_to_front ie.maximize ie.goto url t=ie.text_field(:name,"q") t.set("Delhi") b=ie.button(:name,"btnG") b.click sleep(2) ie.close ---------------------------------- I also copied the whole Rubi folder from other system to my system .But problem still persist. and when i executed "gem install watir" then command prompt hangs out. Error msg: ==================================== >ruby google.rb c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb: 460:in `method_missing': unknown property or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba The RPC server is unavailable. from c:/ruby/lib/ruby/gems/1.8/ gems/watir-1.6.5/lib/watir/ie-class.rb:460:in `document' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ container.rb:800:in `locate_input_element' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ input_elements.rb:5:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb: 53:in `assert_exists' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb: 288:in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb: 60:in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ input_elements.rb:327:in `set' from google.rb:8 >Exit code: 1 ================================= -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com