异常线程" main" org.opens.selenium.WebDriverException:未知错误:chrome无法启动
答案 0 :(得分:0)
我猜你没有在代码中添加Chromedriver路径,首先下载Chromedriver并像这样添加
public class Test1
{
public static void main(string[] args)
{
System.setProperty("webdriver.chrome.driver","E://batch235//chromedriver.exe");
ChromeDriver driver=new ChromeDriver();
driver.get("https://www.google.co.in");
}
}
添加chromedriver
路径代替E:/software and tools/chromedriver_win32/chromedriver.exe