Phantomjs Alternative - RFC6455 WebSocket Standard required

北城以北 提交于 2019-12-11 11:40:25

问题


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.



来源:https://stackoverflow.com/questions/25182226/phantomjs-alternative-rfc6455-websocket-standard-required

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!