Пример #1
0
 public void ElementWaitForTimeoutTest4()
 {
     var browser = new BrowserWrapper(new MockIWebDriver(), new MockITestBase(), new ScopeOptions());
     var element = new ElementWrapper(new MockIWebElement(), browser);
     var i = 0;
     element.WaitFor(elm => i++ == 5, 2000, "test timeouted", checkInterval: 100);
 }
Пример #2
0
        public void ElementWaitForTimeoutTest6()
        {
            var browser = new BrowserWrapper(new MockIWebDriver(), new MockITestBase(), new ScopeOptions());
            var element = new ElementWrapper(new MockIWebElement(), browser);
            var i = 0;
            element.WaitFor((elm) =>
            {

                if (i++ == 3)
                {
                    return;
                }
                throw new Exception("Not valid.");
            }, 2000, "test timeouted", checkInterval: 100);
        }
Пример #3
0
 public void ElementWaitForTimeoutTest()
 {
     var browser = new BrowserWrapper(new MockIWebDriver(), new MockITestBase(), new ScopeOptions());
     var element = new ElementWrapper(new MockIWebElement(), browser);
     element.WaitFor(elm => false, 2000, "test timeouted");
 }
Пример #4
0
 public void ElementWaitForTimeoutTest5()
 {
     var browser = new BrowserWrapper(new MockIWebDriver(), new MockITestBase(), new ScopeOptions());
     var element = new ElementWrapper(new MockIWebElement(), browser);
     var i = 0;
     element.WaitFor((elm) => elm.CheckIfValue("asdasdasdasd"), 2000, "test timeouted", checkInterval: 100);
 }