简体   繁体   English

PhantomJS饼干

[英]PhantomJS Cookies

I'm trying to run some QUnit test cases with phantomJS and chutzpah console. 我正在尝试使用phantomJS和chutzpah控制台运行一些QUnit测试用例。 I'm having difficulties communicate with the phantomJS cookies. 我在与phantomJS cookie交流时遇到困难。 My test case runs perfectly with the browser communicating with the but not with phantomJS as it gives an error with the cookie. 我的测试用例在浏览器与,但与phantomJS进行通信时完美运行,因为它给cookie带来了错误。

Does the phantomJS deals with Cookies in a different pattern than the other browsers? phantomJS是否以与其他浏览器不同的模式处理Cookie? any suggestions? 有什么建议么?

Have you got at least version 1.7 of PhantomJS? 您是否至少拥有1.7版的PhantomJS? In the release notes it states: 在发行说明中指出:

PhantomJS 1.7 "Blazing Star", was released on September 22, 2012. It added module system support (modelled after CommonJS), better cookies handling , and other small improvements. PhantomJS 1.7“ Blazing Star”于2012年9月22日发布。它增加了对模块系统的支持(以CommonJS建模), 更好的cookie处理以及其他一些小的改进。

http://phantomjs.org/release-1.7.html http://phantomjs.org/release-1.7.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM