Hi all,
I have a problem in my project to click on a image.
which has this HTML Code:-
<div id="research" class="elm" onclick="
location.href='ResearchAndTools/Default.aspx';" style="filter:progid:
DXImageTransform.Microsoft.AlphaImageLoader
(src='../Images/nav_research.png',sizingMethod='image');">
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
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general