1
可能重複:
How to close a ChromeDriver when running on Grid?webdriver的退出方法掛斷Chrome瀏覽器,同時關閉
我打開Chrome瀏覽器中使用ChromeDriver並使用退出()方法,當時的瀏覽器是關閉鉻掛斷電話並給出錯誤,附在這個問題上
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