/// <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 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(); }