suppose the following is mentioned in the tag a:
<a href=www.google.com/url?url=www.xyz.com> www.xyz.com/1213sdsd/en-us </a>
The text between the tagname is also a link. How do I select the same using driver object in selenium.
my code:
String link = "www.xyz.com";
WebElement link = driver.findElement(By.partialLinkText(link));
link.click();