try{
System.out.print("Now enter into systemWindow. Alert text is: ");
String text = driver.switchTo().alert().getText();
System.out.println(text);
driver.switchTo().alert().accept();
} catch (NoAlertPresentException e){
System.out.println("--------------------没找到 alert 弹出框--------------------");
e.printStackTrace();
}