public void ClerkApplication() { //change language by clicking the language drop down list LanguageSelect.SendKeys(Keys.ArrowDown); // Log.Info("pressed arrow down to select hebrew language"); //fill user name, pasdoword and hit LOGIN UserName.EnterClearText(Constant.userEmail); UserPassword.EnterClearText(Constant.loginPassword); LoginButton.ClickOn(); if (Pages.Home_Page.AppointmentBtn_1.Displayed) { } else if (Pages.Home_Page.AppointmentBtn_2.Displayed) { SideBarArrow.ClickOn(); } softAssert.VerifyElementNotPresent(Pages.Home_Page.SettingScreen); }
public void LoginUnauthorizedUserApplication() { //change language by clicking the language drop down list LanguageSelect.SendKeys(Keys.ArrowDown); Log.Info("pressed arrow down to select hebrew language"); //fill user name, pasdoword and hit LOGIN UserName.EnterClearText(Constant.unauthorizedUserName); UserPassword.EnterClearText(Constant.loginPassword); LoginButton.ClickOn(); if (NewAppointment.IsDisplayed("new Appointment btn")) { } else { Log.Error("Login Failed"); Assert.Fail(); } }