when i run these commands in IRB the ie.text_field(:name,
'UserName').flash works
and ie.text_field(:name, 'UserName').set('user') works

but i'm getting this when try to run it in a file

c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in
`assert_exists': Unable to locate element, using :name,
"UserName" (Watir::Exception::UnknownObjectException)
        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 sub.rb:7


On Jul 28, 4:48 pm, niartseoj <[email protected]> wrote:
> having problems running scripts using vista, IE8.
> gem -v  returns
> ruby -e 'require "watir"; puts Watir::IE::VERSION'
>
> things work find in irb. but when i run this it seems that system does
> not wait for htlm to load.
> it runs find on xp with same versions
>
> # the Watir controller
> require "watir"
> require "watir/ie"
>
> ie = Watir::IE.new
> ie.goto("http://www.rapidreview.com/sales30/CALogon.jsp";)
> ie.text_field(:name, 'UserName').set('user')

-- 
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: [email protected]
To unsubscribe: [email protected]

Reply via email to