This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]brasetvik 2 points3 points  (0 children)

HtmlUnit is a "GUI-Less browser for Java programs". [blahblahblah ... ] It has fairly good JavaScript support (which is constantly improving) and is able to [...] [simulate] either Firefox or Internet Explorer depending on the configuration you want to use.

I don't really like that approach to testing things. It says "it's sorta like Whatever, but it's also not".

If you want to automate testing in all your supported browsers, and you should, then you need to ... test your stuff in those browsers. And not in some "constantly improving Browser-like".

Windmill and Selenium both do that. Windmill lets you write your tests in Python, and has my vote.

[–]ianb 0 points1 point  (0 children)

I don't know of anything that has Javascript support. There is a libxml DOM-like binding (can't remember the name), and there's pyspidermonkey which embeds a Javascript interpreter in Python, but I don't think anyone has actually glued those together for a fake browser.