public void Add(string code) { PanelModuleCommon.AddButtonClick(); UpdatePanelHousehold.Instance.SetFirstName(code); UpdatePanelHousehold.Instance.SetLastName(code); UpdatePanelsBottomButtons.SaveButtonClick(); }
public void Change() { Thread.Sleep(1000); // table paint needs time as well as recognizing selection of row Module.DoPrimaryFilter(Code); PanelModuleCommon.ChangeButtonClick(); Panel.SetChangeValue(Code); UpdatePanelsBottomButtons.SaveButtonClick(); }
public void Add(string code) { PanelModuleCommon.AddButtonClick(); DialogDefaultRecordAdd dlg = new DialogDefaultRecordAdd(); dlg.ContinueButtonClick(); UpdatePanelPosTicket.Instance.SetTicketCode(code); UpdatePanelsBottomButtons.SaveButtonClick(); }
/// <summary>Deletes <font color="#ff0000"><strong>selected</strong></font>item from the active management actor's page. This assumes that the item is already selected.</summary> public void Delete() { PanelModuleCommon.MoreButtonClick(); PanelModuleCommon.DeleteButtonClick(); DialogInformation dlg = new DialogInformation(); dlg.ClickButtonByButtonTitle(Resource.Yes); // a delay is required here because selenium runs so fast that the next elements may not be ready to receive // input but also present so it does not fail to find the element Thread.Sleep(2000); }
public void Add(string code) { PanelModuleCommon.AddButtonClick(); DialogDefaultRecordAdd dlg = new DialogDefaultRecordAdd(); dlg.ContinueButtonClick(); UpdatePanelActivity.Instance.SetActivityCode(code); UpdatePanelActivity.Instance.SetLongDescription(code); Thread.Sleep(2000); // There is a bug in RecTrac Activity Add that this setting of short description and waiting is meant to work around. UpdatePanelsBottomButtons.SaveButtonClick(); }
public void Clone(string code) { string clonedValue = code + Resource.CloneSuffix; PanelModuleCommon.CloneButtonClick(); DialogFileMaintenanceClone dlg = new DialogFileMaintenanceClone(); dlg.SetNewRecordCodeList(clonedValue); dlg.ContinueButtonClick(); DialogInformation dlgInfo = new DialogInformation(); dlg.ClickButtonByButtonTitle(Resource.ProcessButtonTitle); Dialog dlgSuccess = new Dialog(Resource.SuccessDialogTitle); dlgSuccess.CloseDialogByCloseButton(); }
public new void Clone(string code) { string clonedValue = code + Resource.CloneSuffix; PanelModuleCommon.CloneButtonClick(); DialogFileMaintenanceClone cloneDlg = new DialogFileMaintenanceClone(); cloneDlg.SetNewRecordCodeList(clonedValue); cloneDlg.SetNewSeason(Season); cloneDlg.SetNewYear(Year); cloneDlg.ContinueButtonClick(); DialogInformation infoDlg = new DialogInformation(); infoDlg.ClickButtonByButtonTitle("Process"); RecTracPom.OnScreenElements.Dialog dialog = new RecTracPom.OnScreenElements.Dialog("Success"); dialog.CloseDialogByCloseButton(); }
/// <summary>Activity Section Add requires an activity code to which the section will be added in addition to the section code itself. To use this method one can /// set the properties for desired values (like Activity code and Season) or use the default values. </summary> /// <param name="code">The code.</param> public void Add(string code) { PanelModuleCommon.AddButtonClick(); DialogDefaultRecordAdd dlg = new DialogDefaultRecordAdd(); dlg.ContinueButtonClick(); UpdatePanelActivitySection.Instance.SetActivityCodeByText(Activity); UpdatePanelActivitySection.Instance.SetSection(code); UpdatePanelActivitySection.Instance.SetYear(Year); UpdatePanelActivitySection.Instance.SetSeasonByText(Season); UpdatePanelActivitySection.Instance.SetFacilityByText(FacilityText); UpdatePanelActivitySection.Instance.SetBeginDate(BeginDate); UpdatePanelActivitySection.Instance.SetEndDate(EndDate); UpdatePanelActivitySection.Instance.SetBeginTime(BeginTime); UpdatePanelActivitySection.Instance.SetEndTime(EndTime); UpdatePanelActivitySection.Instance.ClickAllDays(); Thread.Sleep(500); // Let the underlying page actions complete. UpdatePanelsBottomButtons.SaveButtonClick(); }
public void Add(string code) { PanelModuleCommon.AddButtonClick(); UpdatePanelLock.Instance.SetLockNumber(code); UpdatePanelsBottomButtons.SaveButtonClick(); }
public static void CloseActiveTab() { PanelModuleCommon.DoCloseActiveTabEntire(); }