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(); }
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()); }
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(); }
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(); }
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(); }
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"); }
public void ClickAddAddress() { AutomationSugar.WaitFor("add_an_address_button"); AutomationSugar.ClickOn("add_an_address_button"); AutomationSugar.WaitForAjaxCompletion(); }
public static void WaitForAndClickOn(By element) { AutomationSugar.WaitFor(element); AutomationSugar.ClickOn(element); }
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")); }
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(); }
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(); }
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(); }
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(); }