Boolean b=selenium.isAlertPresent(); if(b.equals(true)) { Alert alert= wd.switchTo().alert(); alert.dismiss(); String error=selenium.getAlert(); return "Error:"+error; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)