-1
我嘗試在Chrome瀏覽器中啓動測試硒。我使用Ubuntu 14.04。 此代碼不起作用:我無法爲ChlenDriver設置硒
driver = new ChromeDriver();
我得到以下錯誤:
java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html
我在the page,我想下載谷歌驅動程序,但此此頁面爲空!我還沒有看到任何下載鏈接。我無法找到幫助我的信息。
謝謝,我下載的驅動程序。我如何設置它?我必須將此驅動程序添加到路徑或其他東西? – user3233853 2014-09-19 07:47:37
非常感謝您的鏈接!我把這個文件放在recource目錄下,用代碼System.setProperty(「webdriver.chrome.driver」,「src/test/resources/chromedriver」)編寫。 driver = new ChromeDriver();並通過了所有測試。也許你配置這個驅動程序的東西更好? – user3233853 2014-09-19 07:55:59