//RE LOGIN public void callReLoginMethods() { loginMain.LogoutSuccess(); loginMain.ReLogInNavigation(); loginMain.LogInSuccess(); Thread.Sleep(4000); }
//Check re-login redirect public void ReLogInRedirect() { utilities.ConsoleMessageStart(); utilities.extenttest = utilities.extent.StartTest("ReLogIn Redirect Success"); utilities.extenttest.AssignCategory("Login Tests"); loginMain.NavigateTo(); loginMain.LogInSuccess(); loginMain.LogoutSuccess(); loginMain.ReLogInNavigation(); Thread.Sleep(6000); if (driver.FindElement(By.Id("loginMain_Password")).Displayed) { Console.WriteLine("ReloginRedirect Success"); utilities.extenttest.Log(LogStatus.Pass, "Assert pass "); Assert.Pass(); } else { Console.WriteLine("LoginRedirect Failed"); Assert.Fail(); } }
//Re-Login public void ReLogin() { loginMain.LogoutSuccess(); loginMain.ReLogInNavigation(); loginMain.LogInSuccess(); }