org.openqa.selenium.WebDriverException:java.net.ConnectException,我如何解决

问题描述 投票:-3回答:1
public class Prog1 {

    public static void main(String[] args) {

    System.setProperty("WebDriver.chrome.driver", "D:\\Users\\sh\\workspace\\Java2020\\chromedriver.exe");
    WebDriver driver = new ChromeDriver();

 driver1.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

System.out.println("Hello world");
java
1个回答
0
投票

超时异常驱动程序对象应该是驱动程序而不是驱动程序1

© www.soinside.com 2019 - 2024. All rights reserved.