我使用 ChromeDriver 打开 Chrome 浏览器并使用 Quit() 方法关闭 chrome,当时浏览器挂断并给出错误,如本问题所附
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class test{
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://google.com");
driver.quit();
}
}
Windows 挂起错误上列出的这些错误
Problem signature:
Problem Event Name: APPCRASH
Application Name: chromedriver.exe
Application Version: 0.0.0.0
Application Timestamp: 4fe36699
Fault Module Name: chromedriver.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4fe36699
Exception Code: 80000003
Exception Offset: 000143e0
OS Version: 6.1.7600.2.0.0.768.2
Locale ID: 16393
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt