Gets a link on the page and stores in the context.
An example of its use might be to click on a link via its underlined text:
<testcase xmlns="jelly:jameleon" xmlns:j="jelly:core">
<watij-session baseUrl="http://jameleon.sourceforge.net" beginSession="true">
<watij-link
functionId="Get the 'some link' link"
how="text"
what="some link"
contextVar="watijLink"/>
<watij-click
functionId="Click on the 'some link' link"
element="${watijLink}"/>
</watij-session>
</testcase>
Maybe there are several links with the same text and the one of interest has a and id attribute of '42'
and you want to use a more specific context variable name like 'link42':
<testcase xmlns="jelly:jameleon" xmlns:j="jelly:core">
<watij-session baseUrl="http://jameleon.sourceforge.net" beginSession="true">
<watij-link
functionId="Get the link with the id of '42'"
how="id"
what="42"
contextVar="link42"/>
<watij-click
functionId="Click on the link"
element="${link42}"/>
</watij-session>
</testcase>
See the javadocs on watij's SymbolFactory for a complete list of supported symbols.
Tag Name: <watij-link>Type: action
Field Summary
Fields inherited from class net.sf.jameleon.plugin.watij.tags.AbstractWatijGetTag