我使用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>"
}
}
答案 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>"
}
},
[...]