public void Clear() { // clear personal information if (PatientSearchVar.ClearType == 0) { helper.ClearTextBox(TxtLastName); helper.ClearTextBox(TxtFirstName); helper.ClearTextBox(TxtPatientNum); helper.ClearCheckBox(ChkSurgeryDate); helper.ClearCheckBox(ChkDOB); helper.ClearCheckBox(ChkAge); helper.ClearRadioBtn(RdoMale); helper.ClearRadioBtn(RdoFemale); helper.ClearMaskedTextBox(MTxtssn); TxtLastName.Focus(); } // clear home information if (PatientSearchVar.ClearType == 1) { helper.ClearTextBox(TxtAddress1); helper.ClearTextBox(TxtAddress2); helper.ClearTextBox(TxtCity); helper.ClearComboBoxTxt(CboState); helper.ClearMaskedTextBox(MTxtZip); helper.ClearMaskedTextBox(MTxtPhone); helper.ClearMaskedTextBox(MTxtCell); TxtAddress1.Focus(); } }
public AddressDetailsPage.AddressDetailsPage AddAddress(AddAddressBO addAddressBo) { TxtFirstName.SendKeys(addAddressBo.FirstName); TxtLastName.SendKeys(addAddressBo.LastName); TxtAddress1.SendKeys(addAddressBo.Address1); TxtCity.SendKeys(addAddressBo.City); var selectState = new SelectElement(DdlState); selectState.SelectByText(addAddressBo.State); TxtZipCode.SendKeys(addAddressBo.ZipCode); LstCountry[addAddressBo.Country].Click(); var js = (IJavaScriptExecutor)driver; js.ExecuteScript("arguments[0].setAttribute('value', arguments[1])", BtnColor, addAddressBo.Color); BtnCreateAddress.Click(); return(new AddressDetailsPage.AddressDetailsPage(driver)); }
public void Clear() { // clear personal info if (AddPatientVar.ClearType == 0) { helper.ClearTextBox(TxtLastName); helper.ClearTextBox(TxtFirstName); helper.ClearTextBox(TxtPatNum); helper.SetDateToToday(DtStart); helper.ClearRadioBtn(RdoMale); helper.ClearRadioBtn(RdoFemale); helper.ClearMaskedTextBox(MTxtssn); TxtLastName.Focus(); } // clear home if (AddPatientVar.ClearType == 1) { helper.ClearTextBox(TxtAddress1); helper.ClearTextBox(TxtAddress2); helper.ClearTextBox(TxtCity); helper.ClearComboBoxTxt(CboState); helper.ClearMaskedTextBox(MTxtZip); helper.ClearMaskedTextBox(MTxtPhone); helper.ClearMaskedTextBox(MTxtCell); TxtAddress1.Focus(); } // clear surgery if (AddPatientVar.ClearType == 2) { helper.SetDateToToday(DtSurgeryDate); helper.SetDateToToday(DtFiscalYear); DtSurgeryDate.Focus(); } }