Bad Man
Bad Man

Reputation: 157

Emulating a web browser

we are tasked with basically emulating a browser to fetch webpages, looking to automate tests on different web pages. This will be used for (ideally) console-ish applications that run in the background and generate reports.

We tried going with .NET and the WatiN library, but it was built on a Marshalled IE, and so it lacked many features that we hacked in with calls to unmanaged native code, but at the end of the day IE is not thread safe nor process safe, and many of the needed features could only be implemented by changing registry values and it was just terribly unflexible.

Languages acceptable C++, C#, Python, anything that can be a simple little background application that is somewhat bearable and doesn't have a completely "untraditional" syntax like Ruby.

From my own research, and believe me I am terrible at google searches, I have heard good things about WebKit... would the Qt module QtWebKit handle all these features?

Upvotes: 5

Views: 1887

Answers (3)

Randal
Randal

Reputation: 51

I've only been digging into this recently myself, so I couldn't say that this does everything you've listed, but check out GeckoFx.

From the site: GeckoFX is an open-source component which makes it easy to embed Mozilla Gecko (Firefox) into any .NET Windows Forms application. Written in clean, fully commented C#, GeckoFX is the perfect replacement for the default Internet Explorer-based WebBrowser control.

As for my own impressions: it has blown away the default .NET WebBrowser in both performance and stability.

Upvotes: 1

ʇsәɹoɈ
ʇsәɹoɈ

Reputation: 23459

You might try one of these:

http://code.google.com/p/spynner/

http://code.google.com/p/pywebkitgtk/

Upvotes: 3

Josh Stodola
Josh Stodola

Reputation: 82483

I know you mentioned you don't like Ruby syntax (neither do I), but I just have to chime in and say that Watir is probably the best thing out there for what you are trying to do.

EDIT: There appears to be a Java counter-part called Watij

Upvotes: 1

Related Questions