public static StaffRecordPage LoadStaffDetail(Guid staffId) { var jsExecutor = (IJavaScriptExecutor)SeSugar.Environment.WebContext.WebDriver; string js = "sims_commander.OpenDetail(undefined, '/{0}/Staff/SIMS8StaffMaintenanceTripleStaff/ReadDetail/{1}')"; Retry.Do(() => { jsExecutor.ExecuteScript(string.Format(js, TestSettings.TestDefaults.Default.Path, staffId)); }); AutomationSugar.WaitForAjaxCompletion(); return(new StaffRecordPage()); }
public static PupilContactPage LoadPupilContactDetail(Guid pupilContactId) { var jsExecutor = (IJavaScriptExecutor)SeSugar.Environment.WebContext.WebDriver; string js = "sims_commander.OpenDetail(undefined, '/{0}/Pupils/SIMS8LearnerContactMaintenanceSimpleLearnerContact/ReadDetail/{1}')"; Retry.Do(() => { jsExecutor.ExecuteScript(string.Format(js, TestSettings.TestDefaults.Default.Path, pupilContactId)); }); AutomationSugar.WaitForAjaxCompletion(); return(new PupilContactPage()); }
public IList <TResultTile> Where(Func <TResultTile, bool> predicate) { List <TResultTile> results = null; Retry.Do(() => { results = _results.Where(predicate).ToList(); }, catchAction: Initialise); return(results); }
public TrRow this[int index] { get { var row = default(TrRow); try { row = _rows[index]; } catch { Retry.Do(() => { Initialise(); row = _rows[index]; }); } return(row); } }
public TResultTile this[int index] { get { var result = default(TResultTile); try { result = _results[index]; } catch { Retry.Do(() => { Initialise(); result = _results[index]; }); } return(result); } }
public SearchListResultsComponent(BaseComponent parent) : base(parent) { Retry.Do(Initialise); }