Example #1
0
        public void TestWaitForAngularWithNothingPending()
        {
            var browser = new Mock <IBrowser>(MockBehavior.Strict);

            browser.Setup(s => s.IsClosed).Returns(false);
            browser.Setup(s => s.IsDisposed).Returns(false);
            browser.Setup(s => s.Url).Returns("http://www.specbind.org");
            browser.Setup(s => s.ExecuteScript(It.IsAny <string>())).Returns("0");
            WebDriverSupport.Browser = browser.Object;

            WebDriverSupport.WaitForAngular();

            browser.VerifyAll();
        }
Example #2
0
 public void WaitForAngular()
 {
     WebDriverSupport.WaitForAngular();
 }