Skip to content

Tag: htmlunit

Java Web Scraper project is returning null instead of normal links

Used maven for htmlunit dependency for the webscraper. The main issue is that my scraper returns null instead of links. I made an item class to set and get. } Result: basically a line of null going down *note: Putting System.out.println(link) returns one link and reuses that same link as it prints new line, in this case it would be

How to change my Selenium code to HtmlUnit [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 10 months ago. Improve this question I have the sellinium code below and it working fine. What I want

HTMlUnit – getByXPath – Get Values Back From Attribute List

I’m trying to get just the value from an xpath query for hrefs attributes but I can’t figure out how to state the query, at best I get my refs back in a list of DomAttr that I need to use getValue() on to get the actual link. My very simple set-up is the following: E: This returns the value