public void Login2(User user) { var token = LoginApi.Login(user); Driver.Manage().Cookies.AddCookie(new Cookie("PHPSESSID", token.PHPSESSID)); Driver.Manage().Cookies.AddCookie(new Cookie("Loggedin", "True")); Driver.Url = "https://s2.demo.opensourcecms.com/orangehrm/index.php"; MyDriver.WriteAllCookies(Driver); }
public void TestLogout() { MyDriver.WriteAllCookies(Driver); homePage.ClickLogout().AssertLoginButtonIsVisisble(); }