Esempio n. 1
0
		public void GetStartPage()
		{
			using (var driver = new ChromeDriver())
			{
				driver.Navigate().GoToUrl(ULearnUrls.StartPage);
				var ulearnDriver = new UlearnDriver(driver);
				var startPage = ulearnDriver.Get<StartPage>();
				Assert.AreEqual(PageType.StartPage, ulearnDriver.GetCurrentPageType());
			}
		}
Esempio n. 2
0
 public void GetStartPage()
 {
     using (var driver = new ChromeDriver())
     {
         driver.Navigate().GoToUrl(ULearnUrls.StartPage);
         var ulearnDriver = new UlearnDriver(driver);
         var startPage    = ulearnDriver.Get <StartPage>();
         Assert.AreEqual(PageType.StartPage, ulearnDriver.GetCurrentPageType());
     }
 }
Esempio n. 3
0
		public void GoToSignInPage()
		{
			using (IWebDriver driver = new ChromeDriver())
			{
				driver.Navigate().GoToUrl(ULearnUrls.StartPage);
				UlearnDriver ulearnDriver = new UlearnDriver(driver);
				var startPage = ulearnDriver.Get<StartPage>();

				startPage.GoToSignInPage();
				Assert.AreEqual(PageType.SignInPage, ulearnDriver.GetCurrentPageType());

				ulearnDriver.GoToStartPage();
				var isLogin = ulearnDriver.LoggedIn;
				Assert.IsFalse(isLogin);
			}
		}
Esempio n. 4
0
        public void GoToSignInPage()
        {
            using (IWebDriver driver = new ChromeDriver())
            {
                driver.Navigate().GoToUrl(ULearnUrls.StartPage);
                UlearnDriver ulearnDriver = new UlearnDriver(driver);
                var          startPage    = ulearnDriver.Get <StartPage>();

                startPage.GoToSignInPage();
                Assert.AreEqual(PageType.SignInPage, ulearnDriver.GetCurrentPageType());

                ulearnDriver.GoToStartPage();
                var isLogin = ulearnDriver.LoggedIn;
                Assert.IsFalse(isLogin);
            }
        }