I am having trouble clicking a link as Watir seems to have trouble
finding it:
This is what I have tried:
ie.link(:text,'Find a Request').click
Error:
./watir.rb:1939:in `assert_exists': Unable to locate object, using
text and Find
a Request (Watir::Exception::UnknownObjectException)
from ./watir.rb:2020:in `click'
from C:/watir-v1_4/Service.rb:49
Here is the source code of the page.
<A onblur="webFXTreeHandler.blur(this);" id="cwc_menu_local:ROOT.Find
a Request-anchor"
onfocus="webFXTreeHandler.focus(this);"
ondblclick="webFXTreeHandler.selectOpen(this);"
onclick="var stat=webFXTreeHandler.select(this); if(!stat)return
stat;;" href="http://gits.csscorp.com/smweb/cwc/nav.menu?
name=navStart&id=ROOT%2FFind%20a%20Request"
target="detail"><SPAN class="cwc_navMenuLabel">Find a Request</SPAN></
A>
How to click a link ' Find a Request ' - anchor with SPAN
Do I need to firewatir some sort of event before trying to click on
the Run
This link?
I hope all that is clear and that someone can help me.
Thanks
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]