Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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);
        }