Unit Testing javascript frontend with phantomjs however the websockets unable to authenticate (401) requests. Did some research found that Phantomjs using older Webkit with older standard. What Alternative headless browser could I use instead of Phantomjs with the latest Websocket Standards?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
http://slimerjs.org/ has the same API and can be run headlessly with xvfb. It runs the gecko engine through your installed firefox. So you will have web socket support.
There is also http://triflejs.org/ with the same PhantomJS API, but is not yet done/feature complete.