/// <summary> /// Action for select view. /// </summary> /// <param name="view">enum for view type</param> public void Action_SelectView(ChartView view) { string waitElement = string.Empty; switch (view) { case ChartView.Week: this.btnWeek.Click(); break; case ChartView.Month: this.btnMonth.Click(); break; case ChartView.Quarter: this.btnQuarter.Click(); break; case ChartView.Year: this.btnYear.Click(); break; default: return; } WebElementKeeper.WaitingFor_InvisibilityOfElementLocated(this._driver, By.XPath(cst_ProgressBar)); System.Threading.Thread.Sleep(TimeSpan.FromSeconds(5)); }
/// <summary> /// Sign In for Dashboard /// </summary> /// <param name="userName">User name</param> /// <param name="password">Password</param> /// <param name="churchCode">Church code</param> public void Action_SignIn() { this.txtUserName.Clear(); this.txtPassword.Clear(); this.btnSignIn.Click(); //Wait for refreshing WebElementKeeper.WaitingFor_InvisibilityOfElementLocated(this.Driver, By.XPath(_spinnerXPath)); }
public void Action_PwdSendEmail(string email) { this.txtEmail.Clear(); this.txtEmail.SendKeys(email); this.btnRestPwd.Click(); //Wait for refreshing WebElementKeeper.WaitingFor_InvisibilityOfElementLocated(this.Driver, By.XPath(_spinnerXPath)); }
public void Action_SignUp(string firstName, string lastName, string email, string signUpPwd, string confirmPwd) { this.txtFirstname.Clear(); this.txtLastname.Clear(); this.txtEmail.Clear(); this.txtSignUpPassword.Clear(); this.txtConfirmPassword.Click(); this.txtFirstname.SendKeys(firstName); this.txtLastname.SendKeys(lastName); this.txtEmail.SendKeys(email); this.txtSignUpPassword.SendKeys(signUpPwd); this.txtConfirmPassword.SendKeys(confirmPwd); this.btnSignUp.Click(); //Wait for refreshing WebElementKeeper.WaitingFor_InvisibilityOfElementLocated(this.Driver, By.XPath(_spinnerXPath)); }
public void SetBaseProfile(string firstName, string lastName, string street1, string city, string zipcode) { WebElementKeeper.WaitingFor_InvisibilityOfElementLocated(this.Driver, By.XPath(_spinnerXPath)); this.txtFirstname.Clear(); this.txtLastname.Clear(); this.txtStreet1.Clear(); this.txtCity.Clear(); this.txtZipcode.Clear(); this.txtFirstname.SendKeys(firstName); this.txtLastname.SendKeys(lastName); this.txtStreet1.SendKeys(street1); this.txtCity.SendKeys(city); this.txtZipcode.SendKeys(zipcode); this.btnSave.Click(); //Wait for refreshing WebElementKeeper.WaitingFor_InvisibilityOfElementLocated(this.Driver, By.XPath(_spinnerXPath)); }
/// <summary> /// Action for select start day of week. /// </summary> /// <param name="view">enum for DayOfWeek type</param> public void Action_SelectStartDayOfWeek(DayOfWeek startDay) { string waitElement = string.Empty; switch (startDay) { case DayOfWeek.Sunday: this.btnWeekDay_Sunday.Click(); break; case DayOfWeek.Monday: this.btnWeekDay_Monday.Click(); break; case DayOfWeek.Tuesday: this.btnWeekDay_Tuesday.Click(); break; case DayOfWeek.Wednesday: this.btnWeekDay_Wednesday.Click(); break; case DayOfWeek.Thursday: this.btnWeekDay_Thursday.Click(); break; case DayOfWeek.Friday: this.btnWeekDay_Friday.Click(); break; case DayOfWeek.Saturday: this.btnWeekDay_Saturday.Click(); break; default: return; } WebElementKeeper.WaitingFor_InvisibilityOfElementLocated(this._driver, By.XPath(cst_ProgressBar)); System.Threading.Thread.Sleep(TimeSpan.FromSeconds(5)); }