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

前端 未结 4 1292
感情败类
感情败类 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:19

    After doing some research, I manage to resolve this problem.

    The error is due to the 127.0.0.1 map to localhost.com in etc/hosts. Edited: 127.0.0.1 localhost

提交回复
热议问题