Thank you Shao.  Alas, your good suggestion didn't work either.

irb(main):037:0> ie.frame("main").frame("header").image(:src, /icon_export\.gif/).click

Watir::Exception::UnknownObjectException: Unable to locate object, using src and

 (?-mix:icon_export\.gif)

        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1979:in `object_exist_check'

        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2094:in `click'

        from (irb):37

        from :0

 

I am suspecting that maybe there is another frame below "header" that this icon_export.gif lives.

When I do this command: ie.frame("main").frame("header").getHTML

I don't see the icon_export.gif in the result; however, it shows up when I do View Source Code for that page.

I am not sure how to go about finding if there is another frame that this icon belongs to.

Any suggestion is appreciated.  Thanks.


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to