How to get href value in selenium webdriver when javascript is called upon click of a link?
<p>Thank you for reviewing my query. On a webpage, there are more than 200 links &amp; I've ensure all are working. This is easy after fetching <code>href</code> value but the problem is, the 'href' value doesn't contain a <code>link</code> rather a 'javaScript function' Here is a source </p>

<pre><code>&lt;a tabindex="8" title="Internal Crossload" target="_self" href="javascript:fnnHomePage('3' , 'WTMS_EXPRESS')"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- Internal Crossload &lt;/a&gt;
</code></pre>

<p>JavaScript function:</p>

<pre><code>&lt;Script&gt;
    /*********************************************************************
    Function Name          : fnnHomePage
    Input Parameter(s)     : transferTypeId
    Output Parameter(s)    : None
    **********************************************************************/
    function fnnHomePage(transferTypeId ,moduleName) {
        if (moduleName == "XXX_EXPRESS")
     {
            document.getElementById("transferTypeId").value=transferTypeId;
            document.getElementById("gadgetType").value="XXX_EXPRESS";
            document.getElementById("moduleName").value="XXX_EXPRESS";
            document.forms[0].action="/XXX/getProposalHomePage.do?transferTypeId="+transferTypeId;
        document.forms[0].submit();
     }
        if (moduleName ==  "CROSSLOAD")
         {
            document.getElementById("transferTypeId").value=transferTypeId;
            document.getElementById("gadgetType").value="CROSSLOAD";
            document.getElementById("moduleName").value="CROSSLOAD";
            document.forms[0].action="/XXX/getCrossLoadHomePage.do?transferTypeId="+transferTypeId;
            document.forms[0].submit();
         }
    }
&lt;/Script&gt;
</code></pre>

<p>From the above code, how to I get a '<strong>Link</strong>' and check if it is working fine in selenium webdriver? There are several links &amp; each one calls a different 'JavaScript function'.Any suggestions will be appreciated. Thank you.</p>