public void LoginTest() { driver = DriversFabric.Init("Chrome"); driver.GoToUrl("http://51.144.34.125/"); var header = new Header_POM(driver); header.SignInClick(); var loginPage = new LoginPage(driver); loginPage.Login(Student_email, Student_password); var loginned = new Loginned(driver); var result = loginned.SignUpField(); driver.Dispose(); StringAssert.Contains(Student_email, result.ToLowerInvariant()); }
public void LogOutTest() { driver = DriversFabric.Init("chrome"); driver.GoToUrl("http://51.144.34.125/"); var header = new Header_POM(driver); header.SignInClick(); var loginPage = new LoginPage(driver); loginPage.Login(Student_email, Student_password); var loginned = new Loginned(driver); loginned.ClickOnLogOutButton(); var NewHeader = new Header_POM(driver); var result = NewHeader.GetSignUpText(); driver.Dispose(); StringAssert.Contains("SIGN UP", result); }