title: how to click a html hyperlink from a java file
body: <p>I am passing an html hyperlink component to a java file</p>
  
  <pre><code>&lt;html:a href="google.com" visible="false" id="googlelink"&gt;
  </code></pre>
  
  <p>The visibility of this link is set to false. In the java file, when a particular condition is met, I would like to set the onclick event for this link. Meaning, when the condition is met I would like to navigate to "Google Page".</p>
  
  <pre><code>TestA.java
  
  if (condition) {
  // click the googlelink component and navigate to google page
  }
  </code></pre>
  
  <p>Thanks,
  Sony</p>