title: How to click on a anchor Tag using selenium webDriver
body: <p>I am not able to click on the button having Some visibility issues. I need to hover around this first to get the link then i need to click on the same.</p>
  
  <pre><code>&lt;a tabindex="0" 
     class="cardPreviewLink expand-icon" 
     aria-label="card opens in new tab" 
     target="_blank" 
     id="card-preview-link-19479" 
     href="/card/19479?$filters@$pattern=10532372&amp;amp;type===&amp;amp;dimension=chargeback_id"&gt; 
    &lt;button class="MuiButtonBase-root MuiIconButton-root" tabindex="-1" type="button"&gt;
      &lt;span class="MuiIconButton-label"&gt;
        &lt;svg class="MuiSvgIcon-root open-icon" 
             focusable="false" 
             viewBox="0 0 24 24" 
             aria-hidden="true" 
             role="presentation"&gt;
          &lt;path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/&gt;
        &lt;/svg&gt;
      &lt;/span&gt;
    &lt;/button&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>Code trials:</p>
  
  <pre><code>WebDriverWait wait4 = new WebDriverWait(driver, 60);
  wait4.until(ExpectedConditions.visibilityOfElementLocated(By.className("cardPreviewLink expand-icon")));
  driver.findElement(By.className("cardPreviewLink expand-icon")).click();
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Timeout Exception because of No such Element Exception
  </code></pre>