Testing non-contact browser browsers supporting javascript / ajax

I use WatiN for BDD Specflow tests. It does the job, but it is slow. I recently came across SimpleBrowser , as shown in this this article. SimpleBrowser is significantly faster than Watin. The main disadvantage is that it does not support javascript and therefore does not support ajax calls.

I am looking for a headless browser that supports javascript - is there such a thing? Is it recommended by Watin?

+4
source share
2 answers

I understand that this is an old question, but it appears on Google when searching for the โ€œMute Browserโ€.

One popular option I used recently is PhantomJS ( http://phantomjs.org/ )

There is a webdriver for selenium to control PhantomJS, and since our tests were already written using specflow / selenium, it was good for us.

Hope this helps someone.

+4
source

I used Coypu , which, as I found, is a beautiful shell for automating the browser. Thanks to this, you can use HtmlUnit, a mute browser that, as I understand it, supports some javascript (in fact, the driver inside Coypu calls HtmlUnitWithJavascript). I have not tried the HtmlUnit driver yet, but Coypu itself is very good (and I'm sure you could use HtmlUnit outside of Coypu too.)

For some ideas see https://github.com/featurist/coypu#htmlunit .

+3
source

All Articles