/ / Click to save
driver.findElement (By.xpath ("/ / * [@ id=" btn-submit "]")). Click ();
) and then there is a pop-up box. You need to click to confirm
/ / I thought this was alter
Alert javascriptConfirm = driver.switchTo (). Alert ();
javascriptConfirm.accept ();
but error:
Exception in thread "main" org.openqa.selenium.NoAlertPresentException: no alert open