OpenQA.Selenium.NavigationTest.ShouldGoToUrlUsingUri C# (CSharp) Méthode

ShouldGoToUrlUsingUri() private méthode

private ShouldGoToUrlUsingUri ( ) : void
Résultat void
        public void ShouldGoToUrlUsingUri()
        {
            Uri macBeth = new Uri(macbethPage);
            Uri simpleTest = new Uri(simpleTestPage);
            INavigation navigation;
            navigation = driver.Navigate();

            navigation.GoToUrl(macBeth);
            Assert.AreEqual(driver.Title, macbethTitle);

            // We go to two pages to ensure that the browser wasn't
            // already at the desired page through a previous test.
            navigation.GoToUrl(simpleTest);
            Assert.AreEqual(simpleTestTitle, driver.Title);
        }