Selenium 3.7 : geckodriver : WebDriverException: org.apache.http.conn.HttpHostConnectException Connection Refused

前端 未结 4 1287
感情败类
感情败类 2020-12-04 03:46

Recently I upgraded to Selenium 3.7.

Code:

import org.openqa.selenium.WebDriver;  
import org.openqa.selenium.firefox.FirefoxDriver;


public static         


        
4条回答
  •  清歌不尽
    2020-12-04 04:20

    I think you are missing the .exe extension. Your path should be like this

    System.setProperty("webdriver.gecko.driver", 
        "/usr/local/bin/geckodriver.exe");
    

提交回复
热议问题