0 votes
in Testing by
How to click on a hyperlink using linkText()?

1 Answer

0 votes
by

driver.findElement(By.linkText(“Google”)).click();

This command finds the element using link text and then click on that element. Thus, the user would be re-directed to the corresponding page.

Related questions

0 votes
asked Dec 6, 2019 in Testing by SakshiSharma
0 votes
asked Dec 9, 2019 in Testing by Robindeniel
...