0
我正在使用Firefox-53,Selenium-3.4並執行下面的代碼,我得到一個錯誤。執行硒時出錯
{
System.setProperty("webdriver.gecko.driver", "D:\\Selenium\\geckodriver.exe");
WebDriver driver ;
driver = new FirefoxDriver();driver.get("http://www.store.demoqa.com");
}
enter code here
錯誤,用法:
enter code here
D:\Selenium\geckodriver.exe`enter code here` [OPTIONS]`enter code here`
D:\Selenium\geckodriver.exe: Unknown option --port=26528`enter code here`
Exception in thread "main"`enter code here` org.openqa.selenium.WebDriverException:`enter code here` org.apache.http.conn.HttpHostConnectException:`enter code here` Connect to localhost:26528 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused
enter code here
在此先感謝:-)
接近運行硒獨立,然後再試一次 –
所有的命令提示符在你的代碼結束了刪除文本輸入代碼。 – Murthi