Re: [Wtr-general] how to click on a image with this HTML code
On 4/30/07, SHALINI GUPTA <[EMAIL PROTECTED]> wrote: Hi Shalini, You can not click that tag with ie.image because it is a div, not an image. Try this instead. ie.div(:id,"research").click Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] how to click on a image with this HTML code
Hi all, I have a problem in my project to click on a image. which has this HTML Code:- i have tried to click this as:- $ie.image(:src,"../Images/nav_research.png").click and $ie.image(:id,"research").click but both of this generate this error:- 1) Error: test_WEBV2_RR(TC_WEBV2_RR): Watir::Exception::UnknownObjectException: Unable to locate object, using src and ../Images/nav_research.png c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1928:in `assert_exists' c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2009:in `click' r_n_d.rb:44:in `assert1' r_n_d.rb:31:in `start' r_n_d.rb:34:in `test_WEBV2_RR' please help me.. how can i click this.. its urgent thanks in advance Regards Shalini Gupta ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general