Hi There,

i am facing the following problem(might be i am not loading all the
required libs), please correct me.

i tried the following
require 'rubygems'
require 'watir'
require 'win32ole'
autoit= WIN32OLE.new('AutoItX3.control')
include Watir
...........
..........

ie.frame(:id=>"fraMagnum").div(:id=>"Submitted-
From").text_field(:id=>"Submitted-From_txt").focus

ie.frame(:id=>"fraMagnum").div(:id=>"Submitted-
From").text_field(:id=>"Submitted-From_txt").send_keys('wells')

thrownup the following error

NoMethodError: undefined method `send_keys' for #<Watir::TextField:
0x154ff20>
        from E:/Tech/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/
watir/ele
ent.rb:447:in `method_missing'
        from (irb):15
        from E:/Tech/Ruby192/bin/irb:12:in `<main>'

if i tried the same in watir-web driver working as expected.

Why i want to use watir 2.0 is that .click is causing timeout error in
web driver even i used with wait_until_present or when_present
methods.

in my application there are hundreds of clicks on div elements.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to