@AfterClass
public void aClass(){
LogUtil.info("-------Finished Test Class-----------");
if (action != null)
action.tearDown("-------Finished Test Class-----------");
}
and the tearDown(String ) is below:
public void tearDown(){
try{
driver.manage().deleteAllCookies();
driver.quit();
}
catch(Exception e){
throw e;
}
}
now I find that when there is a operation to open url in new window then after that ,the ieDriverServer always can not be closed on the step
"driver.manage().deleteAllCookies()"
but if there is no operation to open url in new window ,the ieDriverServer can be delete cookies and quit normally
PS: my env is below: Windows 7 64bits
IE 11 latest ieDriverServer the latest 32bits