I encountered an issue when trying to click on a link as it displayed an "Element Not Found" message. Below is the HTML code I used:
<a id="expTo" class="formblue_link padRight10
exportLinkActive" style="display: block; margin-left: -50px; margin-bottom: -20px;" href="javascript:;"> Export To</a>
Here is my code snippet:
`driver.findElement(By.linkText("Export To")).click();`