SIMULATE CLICK ON A <a href via SELENIUM WEBDRIVER

Asked

Viewed 1,256 times

-2

I am walking through a TABLE in the last column I have a link that opens an Alert, but I am not able to simulate the click with Selenium, if someone can help me?

td class="aligncenter">
a href="javascript:void(0);" title="Visualizar Texto" onclick="BuscarTextoDecisoesPop("1537784");">
img src="../img/Find.png" style="height:20px;width:20px;" alt="Visualizar Texto">
/a>
/td>

From now on I appreciate any help. :-)

1 answer

0

I think I found the solution.

driver.findElement(By.xpath("//a[@title='Visualizar Texto']")).click();

Browser other questions tagged

You are not signed in. Login or sign up in order to post.