Selenio acepta automáticamente las alertas.
¿Alguien sabe como deshabilitar esto? ¿O cómo obtener el texto de las alertas que se han aceptado automáticamente?
Este código necesita trabajar,
driver.findElement(By.xpath("//button[text() = \"Edit\"]")).click();//causes page to alert() something
Alert alert = driver.switchTo().alert();
alert.accept();
return alert.getText();
pero en cambio da este error
No alert is present (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 2.14 seconds
Estoy usando FF 20 con Selenium 2.32