예제 #1
0
        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());
        }
예제 #2
0
        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());
        }
예제 #3
0
        public IList <TResultTile> Where(Func <TResultTile, bool> predicate)
        {
            List <TResultTile> results = null;

            Retry.Do(() =>
            {
                results = _results.Where(predicate).ToList();
            }, catchAction: Initialise);

            return(results);
        }
예제 #4
0
        public TrRow this[int index]
        {
            get
            {
                var row = default(TrRow);
                try
                {
                    row = _rows[index];
                }
                catch
                {
                    Retry.Do(() =>
                    {
                        Initialise();
                        row = _rows[index];
                    });
                }

                return(row);
            }
        }
예제 #5
0
        public TResultTile this[int index]
        {
            get
            {
                var result = default(TResultTile);
                try
                {
                    result = _results[index];
                }
                catch
                {
                    Retry.Do(() =>
                    {
                        Initialise();
                        result = _results[index];
                    });
                }

                return(result);
            }
        }
예제 #6
0
 public SearchListResultsComponent(BaseComponent parent)
     : base(parent)
 {
     Retry.Do(Initialise);
 }