⟩ Do you know how to locate a link using its text in Selenium?
linkText() and partialLinkText() are used for link location.
The examples:
WebElement link1 = driver.findElement(By.linkText(“some_link_test”));
WebElement link2 = driver.findElement(By.partialLinkText(“some_link_part_text”));