尝试使用夜视仪启动硒铬驱动器时的弃用通知

时间:2016-03-17 23:46:14

标签: selenium-webdriver selenium-chromedriver nightwatch.js

我使用chromedriver和nightwatch进行web-ui测试。事情一直有效,直到我得到这个消息。我如何解决这个问题

DEPRECATION NOTICE: Property chrome_driver is deprecated since v0.5.    
Please use the "cli_args" object on the "selenium" property to define 
"webdriver.chrome.driver". E.g.:
{
    "cli_args": {
    "webdriver.chrome.driver": 
        "<VALUE>"
    }
} 

1 个答案:

答案 0 :(得分:1)

答案就在您自己的问题中,并且在Nightwatch网站的example中:

"selenium" : {
  "start_process" : false,
  "server_path" : "",
  "log_path" : "",
  "host" : "127.0.0.1",
  "port" : 4444,
  "cli_args" : {
    "webdriver.chrome.driver" : "<chromedriver path>"
  }
},

[...]