driver.findElement(By.xpath(\"//input[@value=\'添加\']\")).click(); //Pops out an Alert and program stops, does not continue
how to click the alert
C# code:
IAlert alert = driver.SwitchTo().Alert(); alert.Accept(); System.Threading.Thread.Sleep(milliseconds);