Mikael Lundin
Mikael Lundin

Reputation: 289

Browser Emulator API for .NET

I'm looking for a good browser emulator API for .NET. I've been looking at WatiN, but I really don't need (want!) the GUI, I just want the HTML/DOM-parsing, JavaScript runtime and emulation of state, cache, and everything else.

What I'm looking for would work something like this

using (var browser = Browser.Create(BrowserType.Firefox))
{
  // Download all page resources and executes JS
  var page = browser.Open("http://localhost:8080");

  // Lookup <a id="nextButton" href="#" /> and trigger click event
  page.Find("nextButton").Click();
}

Have you ever come across anything like it? Thanks!

Upvotes: 6

Views: 2086

Answers (1)

John Saunders
John Saunders

Reputation: 161773

Why not use the real browser? Use the WebBrowser control.

Upvotes: 3

Related Questions