public void LogoutApplication() { int selectEnviornment = Constant.VersionNumber; switch (selectEnviornment) { case 1: Thread.Sleep(500); ProfileList.ClickOn(); LogoutButton.ClickOn(); Assert.IsTrue(Pages.Login_Page.LoginButton.Displayed); break; case 2: Thread.Sleep(500); ProfileList.ClickOn(); LogoutButton.ClickOn(); Assert.IsTrue(Pages.Login_Page.LoginButton.Displayed); break; case 3: Thread.Sleep(500); Pages.MobileTherapist_Page.MobileLogout(); break; case 4: Thread.Sleep(500); ProfileList.ClickOn(); LogoutButton.ClickOn(); Assert.IsTrue(Pages.Login_Page.LoginButton.Displayed); break; } }
public void ChangePassword() { ProfileList.ClickOn(); ChangePasswordScreen.ClickOn(); OldPassword.EnterClearText(Constant.groupUser); NewPassword.EnterClearText(Constant.loginPassword); ConfirmPassword.EnterClearText(Constant.loginPassword); changePasswordBtn.ClickOn(); }