SIMULATE CLICK ON A href via SELENIUM WEBDRIVER

-3

I'm running a TABLE in the last column I have a link that opens an alert, but I can not simulate the click with Selenium, can anyone 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>

Thanks in advance for any help. : -)

    
asked by anonymous 06.12.2018 / 13:07

1 answer

-2

I think I found the solution.

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