private static void AlertBoxCheckNotExistsCore(this WisejWebDriver driver, MessageBoxIcon icon, string message, int timeoutInSeconds) { AlertBox alertBox = driver.WaitForAlertBox(message, icon: icon, timeoutInSeconds: timeoutInSeconds); Assert.IsNull(alertBox, GetMessage("AlertBox with {0} should not exist.", icon, message)); }
private static void AlertBoxAssertNotExistsCore(this WisejWebDriver driver, bool ignoreIcon, MessageBoxIcon icon, string message, long timeoutInSeconds) { AlertBox alertBox = driver.WaitForAlertBox(ignoreIcon, icon, message, timeoutInSeconds); Assert.IsNull(alertBox, GetMessage("AlertBox with {0} should not exist.", ignoreIcon, icon, message)); }
private static AlertBox AlertBoxGetCore(this WisejWebDriver driver, MessageBoxIcon icon, string message, int timeoutInSeconds) { AlertBox alertBox = driver.WaitForAlertBox(message, icon: icon, timeoutInSeconds: timeoutInSeconds); Assert.IsNotNull(alertBox, GetMessage("AlertBox with {0} not found.", icon, message)); return(alertBox); }