On trying the above line of code irb displays irb(main):045:0> ie.image(:alt, 'Open SDP file').wait_until_present Watir::Exception::UnknownObjectException: Unable to locate element, using :alt,"Open SDP file" from C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/ firewatir/element.rb:907:in `assert_exists' from C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/ firewatir/element.rb:1266:in `method_missing' from (irb):45 from :0 :-( On Feb 17, 2:00 pm, Alastair Montgomery <doodl...@gmail.com> wrote: > Is it possible that you are trying to access the element before it has had > time to render? > We use jQuery and its elements sometime take a while to render fully. > > Try putting a line of *ie.image(:alt, 'Open SDP file').wait_until_present* > before > you attempt to click on it.
-- 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