Selenium webdriver 使用phantomjs的selenium webdriver(JS实现)是否不支持appcache?

Selenium webdriver 使用phantomjs的selenium webdriver(JS实现)是否不支持appcache?,selenium-webdriver,phantomjs,ghostdriver,Selenium Webdriver,Phantomjs,Ghostdriver,我们正在使用SeleniumWebDriver和PhantomJS对我们的单页应用程序运行cucumber测试。我们最近实现了一个appcache清单,现在我们的cukes失败了。在我们的故障排除中,它似乎失败了,因为phantomjs不支持缓存清单。在查看phantomjsdriver.log时,我们发现协商的功能包含: "applicationCacheEnabled":false 然后,我们尝试设置所需的功能,以通过以下方式启用它: var webdriver = require('se

我们正在使用SeleniumWebDriver和PhantomJS对我们的单页应用程序运行cucumber测试。我们最近实现了一个appcache清单,现在我们的cukes失败了。在我们的故障排除中,它似乎失败了,因为phantomjs不支持缓存清单。在查看phantomjsdriver.log时,我们发现协商的功能包含:

"applicationCacheEnabled":false
然后,我们尝试设置所需的功能,以通过以下方式启用它:

var webdriver = require('selenium-webdriver');

var hooks = function() {
  this.Before(function(callback) {
    var pBrowser = webdriver.Capabilities.phantomjs();
    pBrowser.set('applicationCacheEnabled', true);
    this.driver = new webdriver.Builder().withCapabilities(pBrowser).build();
  });
日志文件中所需的vs协商功能表明,它正在尝试设置,但没有成功(我们的cukes仍然失败)


有人知道我们的场景是否不受支持,或者我们是否以错误的方式实现了它吗?

根据位于的源代码第47行,GhostDriver不支持所需与协商功能的功能。

找到了我问题的答案。根据这段源代码的第47行,GhostDriver还不支持它。
SessionManagerReqHand - _postNewSessionCommand - New Session Created: c6f61520-b603-11e3-83b0-2b905be08819
GhostDriver - Main - running on port 63911
CONSTRUCTOR - Desired Capabilities: {"browserName":"phantomjs","applicationCacheEnabled":true}
CONSTRUCTOR - Negotiated Capabilities: {"browserName":"phantomjs","version":"1.9.1","driverName":"ghostdriver","driverVersion":"1.0.3","platform":"mac-unknown-32bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}