Пример #1
0
        public void TestAppCacheStatus()
        {
            driver.Url = simpleTestPage;
            driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromMilliseconds(2000));
            IApplicationCache appCache = ((RemoteWebDriver)driver).ApplicationCache;
            AppCacheStatus    status   = appCache.GetStatus();

            while (status == AppCacheStatus.DOWNLOADING)
            {
                status = appCache.GetStatus();
            }
            Assert.AreEqual(AppCacheStatus.UNCACHED, status);
        }