Example #1
0
		public void LoginVk()
		{
			using (var driver = new ChromeDriver())
			{
				driver.Navigate().GoToUrl(ULearnUrls.StartPage);
				var ulearnDriver = new UlearnDriver(driver);
				var startPage = ulearnDriver.Get<StartPage>();
				var signInPage = startPage.GoToSignInPage();
				signInPage.LoginVk();
				Assert.AreEqual(Admin.Login, ulearnDriver.GetCurrentUserName());
			}
		}
Example #2
0
 public void LoginVk()
 {
     using (var driver = new ChromeDriver())
     {
         driver.Navigate().GoToUrl(ULearnUrls.StartPage);
         var ulearnDriver = new UlearnDriver(driver);
         var startPage    = ulearnDriver.Get <StartPage>();
         var signInPage   = startPage.GoToSignInPage();
         signInPage.LoginVk();
         Assert.AreEqual(Admin.Login, ulearnDriver.GetCurrentUserName());
     }
 }