Watij on appengine

32 views
Skip to first unread message

Phil McDonnell

unread,
Dec 13, 2011, 6:48:37 PM12/13/11
to google-a...@googlegroups.com
Has anyone used Watij on appengine?  This is a library that runs a browser locally in order to automate filling out fields in a webpage.

I just tried using it from a jsp servlet to test and it failed because it calls some privileged methods to run the browser. Has anyone gotten it to work? Anyone know if it'll work in regular java if I trigger it via a task queue instead of a jsp?

Thanks,
Phil

Phil McDonnell

unread,
Dec 13, 2011, 8:47:01 PM12/13/11
to google-a...@googlegroups.com
As a follow up, would htmlunit be a better choice for web scraping / automation within App Engine?

Ernesto Oltra

unread,
Dec 14, 2011, 2:12:43 AM12/14/11
to google-a...@googlegroups.com
I've used HtmlUnit before. It has a nice integration with the restricted environment of AppEngine. It works.

Phil McDonnell

unread,
Dec 15, 2011, 1:30:08 AM12/15/11
to google-a...@googlegroups.com
I tried HtmlUnit too, but hit what I believe is a bug stopping it from working with AppEngine. Have others not his the issue with jsx cookies described here?


I is apparently an appengine bug from here: http://code.google.com/p/googleappengine/issues/detail?id=4784

On Wed, Dec 14, 2011 at 2:12 AM, Ernesto Oltra <ernest...@gmail.com> wrote:
I've used HtmlUnit before. It has a nice integration with the restricted environment of AppEngine. It works.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/ZknSo0OTxR4J.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Ernesto Oltra

unread,
Dec 15, 2011, 5:09:13 AM12/15/11
to google-a...@googlegroups.com
I use my own classes for cookie management, so I didn't found that error. Subclassing the manager and re-defining getPort() as mentioned in the issue doesn't work?

2011/12/15 Phil McDonnell <phil.a.m...@gmail.com>
Reply all
Reply to author
Forward
0 new messages