我有一套測試使用本地驅動程序建立與守夜。效果很好。nightwatch.js可以使用selenium-webdriver中的usingServer嗎?
我正在使用PERFECTO移動和硒webdriver的一個基本的測試。它適用於這個例子。(https://community.perfectomobile.com/series/20208/posts/1002862)
我想連接我的套件nightwatch測試perfecto,但不能啓動硒。如果這是硒服務器的網址。
var url = "https://mobilecloud.perfectomobile.com/nexperience/perfectomobile/wd/hub";
我嘗試了幾種方法在nightwatch config下設置它,但無法使其工作。
"selenium" : {
"start_process" : true,
"host" : "mobilecloud.perfectomobile.com/nexperience/perfectomobile/wd/hub"
}
是否有一個相當於usingServer在nightwatch?我在文檔中沒有看到任何內容。
driver = new webdriver.Builder().
usingServer(url).
withCapabilities(capabilities).
build();