public void CheckAnswers() { using (var driver = new ChromeDriver()) { driver.Navigate().GoToUrl(ULearnUrls.StartPage); UlearnDriver ulearnDriver = new UlearnDriver(driver); ulearnDriver.GoToRegistrationPage(); var registrationPage = ulearnDriver.Get <RegistrationPage>(); ulearnDriver.LoginAdminAndGoToCourse(Titles.BasicProgrammingTitle); //var first var page = ulearnDriver.Get <SlidePage>(); } }
public void CheckAnswers() { using (var driver = new ChromeDriver()) { driver.Navigate().GoToUrl(ULearnUrls.StartPage); UlearnDriver ulearnDriver = new UlearnDriver(driver); ulearnDriver.GoToRegistrationPage(); var registrationPage = ulearnDriver.Get<RegistrationPage>(); ulearnDriver.LoginAdminAndGoToCourse(Titles.BasicProgrammingTitle); //var first var page = ulearnDriver.Get<SlidePage>(); } }
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()); } }
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()); } }
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()); } }
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()); } }
public void NotBeLoggedIn() { using (var driver = new ChromeDriver()) { driver.Navigate().GoToUrl(ULearnUrls.StartPage); UlearnDriver ulearnDriver = new UlearnDriver(driver); var startPage = ulearnDriver.Get<StartPage>(); startPage.GoToSignInPage(); ulearnDriver.GoToStartPage(); var isLogin = ulearnDriver.LoggedIn; Assert.IsFalse(isLogin); } }
public void NotBeLoggedIn() { using (var driver = new ChromeDriver()) { driver.Navigate().GoToUrl(ULearnUrls.StartPage); UlearnDriver ulearnDriver = new UlearnDriver(driver); var startPage = ulearnDriver.Get <StartPage>(); startPage.GoToSignInPage(); ulearnDriver.GoToStartPage(); var isLogin = ulearnDriver.LoggedIn; Assert.IsFalse(isLogin); } }
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); } }
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); } }