在PhantomJs Config:SSL协议中添加参数

在PhantomJs Config:SSL协议中添加参数,phantomjs,casperjs,phantomcss,Phantomjs,Casperjs,Phantomcss,我将PhantomJs作为maven模块添加到我的项目中,以测试Projet的状态,即使在修改之后也可以确保我没有做任何修改。 编译maven模块时,我的项目中的https链接有问题: --- frontend-maven-plugin:0.0.26:grunt (grunt build) @ ess-cms-content --- [INFO] Running 'grunt phantomcss --no-color' in /path/to/directory [INFO] Running

我将PhantomJs作为maven模块添加到我的项目中,以测试Projet的状态,即使在修改之后也可以确保我没有做任何修改。 编译maven模块时,我的项目中的https链接有问题:

--- frontend-maven-plugin:0.0.26:grunt (grunt build) @ ess-cms-content ---
[INFO] Running 'grunt phantomcss --no-color' in /path/to/directory

[INFO] Running "phantomcss:desktop" (phantomcss) task
[INFO] [warning] [phantom] Loading resource failed with status=fail:https://gruntjs.com/api/grunt.option
[INFO] [PhantomCSS] Screenshot capture failed: No element matching selector found: div.page
我从搜索中发现应该停用ssl。我不应该用终端。
如何在PhantomJs配置中直接添加选项

您目前使用PhantomJS/PhantomCSS的具体情况如何?在普通PhantomJS中,很容易在
--config=config.json
文件中将其指定为命令行选项。我应该在PhantomJS中的何处添加命令参数?正如我所说,我不知道您是如何使用PhantomJS的。你怎么称呼它?你是怎么安装的?您还使用CasperJS标记了这个问题,但是我没有看到任何与PhantomCSS的连接。我已经将它作为参数安装在pom.xml中的grunt dependency中。我在phantomcss.js中定义了要执行的任务,我修改了输出以查看发生了什么