Пример #1
0
 public void ClickManualAddAddress()
 {
     //_addManualAddressButton.Click();
     AutomationSugar.WaitFor(new ByChained(this.ComponentIdentifier, SeSugar.Automation.SimsBy.AutomationId("find_address_jobstep_button")));
     AutomationSugar.ClickOn(new ByChained(this.ComponentIdentifier, SeSugar.Automation.SimsBy.AutomationId("find_address_jobstep_button")));
     AutomationSugar.WaitForAjaxCompletion();
 }
Пример #2
0
        protected TPageObject ClickAdd <TPageObject>() where TPageObject : BaseComponent, new()
        {
            AutomationSugar.WaitFor(new ByChained(this.ComponentIdentifier, SeSugar.Automation.SimsBy.AutomationId("add_button")));
            AutomationSugar.ClickOn(new ByChained(this.ComponentIdentifier, SeSugar.Automation.SimsBy.AutomationId("add_button")));
            AutomationSugar.WaitForAjaxCompletion();

            return(new TPageObject());
        }
Пример #3
0
            public void ClickMoveAddress()
            {
                AutomationSugar.WaitFor("Action_Dropdown");
                AutomationSugar.ClickOn("Action_Dropdown");
                AutomationSugar.WaitForAjaxCompletion();

                AutomationSugar.WaitFor("Move_address_Action");
                AutomationSugar.ClickOn("Move_address_Action");
                AutomationSugar.WaitForAjaxCompletion();
            }
Пример #4
0
            public void ClickEditAddress()
            {
                AutomationSugar.WaitFor("Action_Dropdown");
                AutomationSugar.ClickOn("Action_Dropdown");
                AutomationSugar.WaitForAjaxCompletion();

                AutomationSugar.WaitFor("Edit_Address_Action");
                AutomationSugar.ClickOn("Edit_Address_Action");
                AutomationSugar.WaitForAjaxCompletion();
            }
Пример #5
0
        public void ClickDelete()
        {
            AutomationSugar.WaitFor("delete_button");
            AutomationSugar.ClickOn("delete_button");
            AutomationSugar.WaitForAjaxCompletion();

            AutomationSugar.WaitFor(new ByChained(SeSugar.Automation.SimsBy.AutomationId("confirm_delete_dialog"), SeSugar.Automation.SimsBy.AutomationId("continue_with_delete_button")));
            AutomationSugar.ClickOn(new ByChained(SeSugar.Automation.SimsBy.AutomationId("confirm_delete_dialog"), SeSugar.Automation.SimsBy.AutomationId("continue_with_delete_button")));
            AutomationSugar.WaitForAjaxCompletion();
        }
Пример #6
0
        public void PupilConduct_AddNewConduct()
        {
            //Arrange
            //Arrange
            SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.TestUser, enabledFeatures: BehaviourEventsFeature);
            Wait.WaitForDocumentReady();

            // Navigate to Pupil Record
            AutomationSugar.NavigateMenu("Tasks", "Pupil Conduct", "Behaviour Events");
            Thread.Sleep(5);
            AutomationSugar.WaitFor("add_button");
            AutomationSugar.ClickOn("add_button");
            AutomationSugar.WaitForAjaxCompletion();

            // Verify data is saved Success
            Assert.AreEqual(true, CheckNewFormIsShown(), "Success behaviour form is display");
        }
Пример #7
0
 public void ClickAddAddress()
 {
     AutomationSugar.WaitFor("add_an_address_button");
     AutomationSugar.ClickOn("add_an_address_button");
     AutomationSugar.WaitForAjaxCompletion();
 }
Пример #8
0
 public static void WaitForAndClickOn(By element)
 {
     AutomationSugar.WaitFor(element);
     AutomationSugar.ClickOn(element);
 }
Пример #9
0
 public void SignIn(bool schoolSelection)
 {
     AutomationSugar.WaitFor("sign-in-account-login");
     AutomationSugar.ClickOnAndWaitFor(SeSugar.Automation.SimsBy.AutomationId("sign-in-account-login"),
                                       schoolSelection ? By.Id("DomainID") : By.Id("shell"));
 }
Пример #10
0
 public void ClickClear()
 {
     AutomationSugar.WaitFor(new ByChained(this.ComponentIdentifier, SimsBy.AutomationId("clear_jobstep_button")));
     AutomationSugar.ClickOn(new ByChained(this.ComponentIdentifier, SimsBy.AutomationId("clear_jobstep_button")));
     AutomationSugar.WaitForAjaxCompletion();
 }
Пример #11
0
 public void ClickAdd()
 {
     AutomationSugar.WaitFor(new ByChained(SeSugar.Automation.SimsBy.AutomationId("add_button")));
     AutomationSugar.ClickOn(new ByChained(SeSugar.Automation.SimsBy.AutomationId("add_button")));
     //AutomationSugar.WaitForAjaxCompletion();
 }
Пример #12
0
 public void ClickSave()
 {
     AutomationSugar.WaitFor(new ByChained(this.ComponentIdentifier, SeSugar.Automation.SimsBy.AutomationId("well_know_action_save")));
     AutomationSugar.ClickOn(new ByChained(this.ComponentIdentifier, SeSugar.Automation.SimsBy.AutomationId("well_know_action_save")));
     AutomationSugar.WaitForAjaxCompletion();
 }
Пример #13
0
 public void ClickAdd()
 {
     AutomationSugar.WaitFor(new ByChained(this.ComponentIdentifier, SeSugar.Automation.SimsBy.AutomationId("add_button")));
     AutomationSugar.ClickOn(new ByChained(this.ComponentIdentifier, SeSugar.Automation.SimsBy.AutomationId("add_button")));
     AutomationSugar.WaitForAjaxCompletion();
 }