這是目前我nightwatch.json文件:有沒有辦法在Nightwatch.json文件中對Selenium Server Path進行硬編碼?
我的問題:是否有引用的server_path .jar文件,以避免硒服務器standalone-硬編碼值的手段方式2.51.0.jar?我想知道,因爲我們公司希望每次更新我們的package.json文件時都會更新硒版本。一旦硒版本發生變化,我們的測試會因爲這個硬編碼值而中斷。我曾嘗試:
1)
"../node_modules/selenium-server-standalone-jar/jar///*.jar"
這失敗的錯誤消息「無法訪問罐子file'.There只有一個可用的.jar文件以供選擇。
2)通過npm引用包含所需版本的selenium-server-standalone包的package.json文件。
任何幫助或建議將不勝感激。