I'm looking for a browser-simulating library on android, which handles things like
- loading a website (http/https)
- Redirections: HTTP (3xx Status Codes), JavaScript, HMTL tags
- filling out html-forms
- easy html parsing (could fall back to JSoup for that one)
HttpUnit or HtmlUnit would do just fine, but both of them are a pain to get running on android.
Is there any other option other than (Android)HttpClient (and therefore doing lots of the above on my own)? Or can I somehow get use of the android webkit/browser?
Thanks in advance!
I would recommend you to have a look at AndroidDriver for selenium. It seems to be a straightforward approach to easy test WebApplications with the Android Testing Framework.
You must use an Activity that includes a WebView in order to test HTTP/HTTPs websites. The Driver is instanciated with this Activity:
Here is a sample test, quoted from the link above: