In our web-aplication we use several alerts like this:
I need to retrieve link from this alert. I did:
Alert alert = driver.switchTo().alert();
String link = alert.getText();
But alert.getText()
returns "Link to copy" not a link in textfield
so how can I get link in this case?