All the link TagName should be "a".
I locate the webelements starts with tagname "a".
I also use driver.findElements instead of driver.findElement since the
list of webelements will return.
List <WebElement> list = driver.findElements(By.tagName(a))
urls = document.querySelectorAll('a'); for (url in urls) console.log(urls[url].href);
All the link TagName should be "a".
I locate the webelements starts with tagname "a".
I also use driver.findElements instead of driver.findElement since the
list of webelements will return.
List list = driver.findElements(By.tagName(“a”));
linkchecker http://www.example.com/
All the link TagName should be "a".
I locate the webelements starts with tagname "a".
I also use driver.findElements instead of driver.findElement since the
list of webelements will return.
List <WebElement> list = driver.findElements(By.tagName(a))