6

Does anyone know of any Java library for programmatic web browsing?

Prowser doesn't cut it because there's no "push the button" method and Watij is limited to Internet Explorer Windows only.

2 Answers 2

12

htmlunit?

http://htmlunit.sourceforge.net/

The above link says:

... HtmlUnit is not a generic unit testing framework. It is specifically a way to simulate a browser for testing purposes...

Sign up to request clarification or add additional context in comments.

2 Comments

HtmlUnit with all of it's dependencies takes 7.6MB. I guess it's not particularly lightweight.
Only if it loads all of those. The size of the jars does not dictate how big the resultant executable is (leaving aside the actual VM size)
1

You may be able to find some of what you want in Selenium and especially when using Selenium Server like in this IBM article

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.