Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 782
Mikael Lundin Avatar asked Jun 21 '10 05:06

Mikael Lundin


1 Answers

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

like image 140
John Saunders Avatar answered Nov 20 '22 19:11

John Saunders