public void ClickOnLogout() { if (LogOut.Displayed) { LogOut.Click(); Thread.Sleep(3000); } else { throw new Exception("Element is not found or not clickable"); } }
public void LogoutUser() { LogOut.Click(LogIn.WaitForAppear); }