While I do like the answer that RyanD gave that that has not refreshed here
yet, you [i]can[/i] access a link element from its "text" property.
So with you code:
<a href="#" onclick="new
Ajax.Request('/data_entry/ajax_add_term/131?contract_id=227',
{asynchronous:true, evalScripts:true}); return false;">add a term</a>
You can access this link in this manner:
ie = IE.attach ( :title, "PageTitle" )
myAjaxLink = ie.link( :text, "add a term" )
Now it works, but do consider Ryan's suggestion in the longterm.
Hope this helps :)
Nathan Christie
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6325&messageID=17870#17870
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general