selenium webdriver在执行 "return this.webDriver.getCurrentUrl(); " 这句话的时候,提示连接拒绝。求解决。

selenium webdriver在执行 "return this.webDriver.getCurrentUrl(); " 这句话的时候,提示连接拒绝
message: java.net.ConnectException: Connection refused: connect

exception: org.openqa.selenium.WebDriverException: java.net.ConnectException: Connection refused: connect

selenium webdriver在执行 "return this.webDriver.getCurrentUrl(); " 这句话的时候,提示连接拒绝
看看是不是地址错了,ssl证书问题,网络、防火墙问题或者对方有反爬虫的手段

<dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>3.4.0</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>23.0</version>
        </dependency>

图片说明