I have to verify the links mentioned in article within web page. There are too many links in the page but I have to verify just the links specified in the article content.

https://techcrunch.com/2019/01/19/bitcoin-social-layer/ -> this is the web page link.

So I'm keeping the elements regarding article content as the following one but how am I going to capture the links mentioned in the article and verify them?

List<WebElement> articlecontent = driver.findElements(By.xpath("/html/body/div[1]/div/div/div[3]/div[2]/div/div/div/article[1]/div[1]/div[2]"));
  • What do you mean "to verify a link"? How are you going to know if the link is valid? – Alexey R. Jan 21 '19 at 12:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.