.net equivalent of htmlunit?

mike picture mike · Mar 17, 2010 · Viewed 11.7k times · Source

Does anybody know if there is a .net equivalent of htmlunit or similar library?

I've heard that people have used IKVM to convert the htmlunit library. But I have also heard that the converted code is slow.

Requirements:

  • Headless browser
  • Support javascript
  • Handle cookies
  • .Net

Answer

Asbjørn Ulsberg picture Asbjørn Ulsberg · Dec 12, 2011

You can try out the just-released NHtmlUnit (available on NuGet), which is a .NET-wrapper for HtmlUnit. It's not .NET as in "written in a .NET language and compiled to MSIL", but it's converted to .NET with IKVM and we've written a layer of "purified" C# code on top of it so everything looks and behaves like .NET.