开发者

.net equivalent of htmlunit?

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.

Requ开发者_如何学运维irements:

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


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.


You can use Htmlunit from .net with ikvm. I followed the instructions at http://blog.stevensanderson.com/2010/03/30/using-htmlunit-on-net-for-headless-browser-automation/ and it worked for me.

edit: it is slow though. recently I've been using Selenium Server with the .net client


Nothing yet that fulfils all of your requirements.

XBrowser is a headless browser that handles cookies, but does not support javascript. It is however in active development so this may change.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜