driver.findElement(By.xpath(\"//input[@value=\'添加\']\")).click(); //Pops out an Alert and program stops, does not continue
how to click the alert
As of the latest selenium 2 release, this can be done (at least using the FirefoxDriver):
driver.switchTo().alert().accept();