in Testing by
Q:
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.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Jan 30, 2020 in Selenium by rajeshsharma
0 votes
asked Aug 22, 2019 in Selenium by john ganales
...