Element:
<a href="https://rads.stackoverflow.com/amzn/click/com/B071NZZHF9" rel="nofollow noreferrer"> == $0
"
B071NZZHF9
"
Tried:
WebElement element = dr.findElement(By.xpath("//a[text()='B071NZZHF9']"));
And tried:
WebElement element = dr.findElement(By.xpath("//a[@href='http://www.amazon.com/gp/product/B071NZZHF9']"));
But got an error: Unable to locate element and unable to click the element