Phantomjs 错误:window.sinon未定义
我正在使用casperjs,它反过来又在slimerjs和phantomxhr上运行。我不确定phantomxhr是否支持slimerjs+capserjs,但我在运行代码时遇到了“window.sinon is undefined”错误(错误在phantomxhr.js第124行)。使用phantomjs运行casperjs时,一切都正常 看起来在注入给定phantomxhr的sinon js脚本时出现了问题(第24行)。所以我所做的是,在测试文件Phantomjs 错误:window.sinon未定义,phantomjs,casperjs,sinon,slimerjs,Phantomjs,Casperjs,Sinon,Slimerjs,我正在使用casperjs,它反过来又在slimerjs和phantomxhr上运行。我不确定phantomxhr是否支持slimerjs+capserjs,但我在运行代码时遇到了“window.sinon is undefined”错误(错误在phantomxhr.js第124行)。使用phantomjs运行casperjs时,一切都正常 看起来在注入给定phantomxhr的sinon js脚本时出现了问题(第24行)。所以我所做的是,在测试文件'phantom.injectJs(“sino
'phantom.injectJs(“sinon.js文件的绝对路径”)中添加一行。
这甚至不会打开浏览器。我做错了什么。任何指针都会有帮助