public void SelectShipDate(string day, string month, string year) { JavaScriptExecutorHelper.ScrollElementAndClick(ShipDate); GenericHelper.WaitForElement(By.XPath("//div[@title='Ship Date']//table[@role='grid']")); CalenderHelper.SelectDate("//div[@title='Ship Date']//table[@role='grid']", day, month, year); GenericHelper.WaitForLoadingMask(); }
public void ClickElemetInGrid(string gridXpath, int row, int column) { var element = GridHelper.GetGridElement(gridXpath, row, column); JavaScriptExecutorHelper.ScrollElementAndClick(element); GenericHelper.WaitForLoadingMask(); }
public void SelectProgramLastSubmitDate(string day, string month, string year) { JavaScriptExecutorHelper.ScrollElementAndClick(LastSubmitDate); GenericHelper.WaitForElement(By.XPath("//div[@data-control='DATA_5']//table[@role='grid']")); /* LastSubmitDate */ CalenderHelper.SelectDate("//div[@data-control='DATA_5']//table[@role='grid']", day, month, year); GenericHelper.WaitForLoadingMask(); }
public RolesDetails ClickOnRoleName(string gridXpath, int row, int column) { var elemnet = GridHelper.GetGridElement(gridXpath, row, column); JavaScriptExecutorHelper.ScrollElementAndClick(elemnet); GenericHelper.WaitForLoadingMask(); return(new RolesDetails(_driver)); }
private void ScreenShotofForgotLink(IWebElement element, string name) { JavaScriptExecutorHelper.ScrollElementAndClick(element); GenericHelper.WaitForElement(Cancel); GenericHelper.TakeSceenShot(name); JavaScriptExecutorHelper.ScrollElementAndClick(Cancel); Thread.Sleep(200); }
protected void TakeScreenShotofPage(IWebElement element, string name) { JavaScriptExecutorHelper.ScrollElementAndClick(element); GenericHelper.WaitForLoadingMask(); GenericHelper.TakeSceenShot(name); BrowserHelper.GoBack(); GenericHelper.WaitForLoadingMask(); }
public void TakeFaqScrShot(string name) { JavaScriptExecutorHelper.ScrollElementAndClick(FAQ); GenericHelper.WaitForLoadingMask(); GenericHelper.TakeSceenShot(name); BrowserHelper.GoBack(); GenericHelper.WaitForLoadingMask(); }
public void SkipBundleSetUp() { var bsetUp = new BundleSetup(driver); JavaScriptExecutorHelper.ScrollElementAndClick(BundelSetup); GenericHelper.WaitForLoadingMask(); bsetUp.Skip(); JavaScriptExecutorHelper.ScrollElementAndClick(BundelSetup); }
public void SelectProgramDatesAndClickNext() { JavaScriptExecutorHelper.ScrollElementAndClick(SelectPrograDates); GenericHelper.WaitForLoadingMask(); TakeScreenShot($"SelectPrograDates-{DateTime.UtcNow.ToString("hh-mm-ss")}"); JavaScriptExecutorHelper.ScrollElementAndClick(SelectDatesNext); GenericHelper.WaitForLoadingMask(); JavaScriptExecutorHelper.ScrollElementAndClick(SelectPrograDates); GenericHelper.WaitForLoadingMask(); }
public void ClickProgramIncentiveAndNext() { JavaScriptExecutorHelper.ScrollElementAndClick(ProgramIncentives); GenericHelper.WaitForLoadingMask(); TakeScreenShot($"ProgramIncentives-{DateTime.UtcNow.ToString("hh-mm-ss")}"); JavaScriptExecutorHelper.ScrollElementAndClick(ProgramIncentiveNext); GenericHelper.WaitForLoadingMask(); JavaScriptExecutorHelper.ScrollElementAndClick(ProgramIncentives); GenericHelper.WaitForLoadingMask(); }
public void CreateGrpOfGroup(string grpName, string grpDes) { JavaScriptExecutorHelper.ScrollElementAndClick(createGrp); GenericHelper.WaitForLoadingMask(); GenericHelper.WaitForElement(By.XPath("//h3[text()='Create a Group Of Groups']")); grp.CreateGrpOfGroup(grpName, grpDes); grp.ClickOk(); GenericHelper.WaitForLoadingMask(); Thread.Sleep(500); }
public void ClickConfigurePrgAndNext() { JavaScriptExecutorHelper.ScrollElementAndClick(ConfigureProgram); GenericHelper.WaitForLoadingMask(); TakeScreenShot($"ConfigureProgram-{DateTime.UtcNow.ToString("hh-mm-ss")}"); JavaScriptExecutorHelper.ScrollElementAndClick(ConfigureProgramNext); GenericHelper.WaitForLoadingMask(); JavaScriptExecutorHelper.ScrollElementAndClick(ConfigureProgram); GenericHelper.WaitForLoadingMask(); }
/// <summary> /// /// </summary> /// <param name="gridXpath"></param> /// <param name="row"></param> /// <param name="column"></param> public void DeleteFromGrop(string gridXpath, int row, int column) { //DropDownHelper.SelectItemPerList("100"); var element = GridHelper.GetGridElement(gridXpath, row, column); JavaScriptExecutorHelper.ScrollElementAndClick(element); GenericHelper.WaitForLoadingMask(); JavaScriptExecutorHelper.ScrollElementAndClick(deleteGrp); GenericHelper.WaitForLoadingMask(); }
public void ClickSave() { JavaScriptExecutorHelper.ScrollElementAndClick(Save); GenericHelper.WaitForAlert(); if (GenericHelper.IsAlertPresent()) { _driver.SwitchTo().Alert().Accept(); } GenericHelper.WaitForLoadingMask(); }
public void AddEligibleGroup(string grpName) { JavaScriptExecutorHelper.ScrollElementAndClick(EligibleGroup); GenericHelper.WaitForLoadingMask(); DropDownHelper.SelectByVisibleText(EligibleGroupDropown, grpName); EligibleGroupNext.Click(); Thread.Sleep(500); EligibleGroup.Click(); GenericHelper.WaitForLoadingMask(); }
public void ClickOnNewAndTakeScrShot(string name) { JavaScriptExecutorHelper.ScrollElementAndClick(CustomeAttribute); JavaScriptExecutorHelper.ScrollElementAndClick(newAttribute); _add.WaitForHeader(); Thread.Sleep(200); TakeScreenShot(name); _add.ClickOnCancel(); GenericHelper.WaitForLoadingMask(); }
public void ClickEligibelGrpAndNext() { JavaScriptExecutorHelper.ScrollElementAndClick(EligibleGroup); GenericHelper.WaitForLoadingMask(); TakeScreenShot($"EligibleGroup-{DateTime.UtcNow.ToString("hh-mm-ss")}"); JavaScriptExecutorHelper.ScrollElementAndClick(EligibleGroupNext); GenericHelper.WaitForLoadingMask(); JavaScriptExecutorHelper.ScrollElementAndClick(EligibleGroup); GenericHelper.WaitForLoadingMask(); }
public void ClickCreateAndCancel(string scrShotName) { JavaScriptExecutorHelper.ScrollElementAndClick(Create); GenericHelper.WaitForLoadingMask(); GenericHelper.WaitForElement(By.Id("GroupName")); Thread.Sleep(200); TakeScreenShot(scrShotName); grp.ClickCancel(); GenericHelper.WaitForLoadingMask(); }
/// <summary> /// /// </summary> /// <param name="grpName"></param> /// <param name="isSmartGroup"></param> public void CreateGroup(string grpName, bool isSmartGroup) { JavaScriptExecutorHelper.ScrollElementAndClick(Create); GenericHelper.WaitForLoadingMask(); GenericHelper.WaitForElement(By.Id("GroupName")); grp.CreateGroup(grpName, isSmartGroup); grp.ClickOk(); Thread.Sleep(500); GenericHelper.WaitForLoadingMask(); }
public void ClickBundleSetupsAndNext() { JavaScriptExecutorHelper.ScrollElementAndClick(BundleSetups); GenericHelper.WaitForLoadingMask(); TakeScreenShot($"BundleSetups-{DateTime.UtcNow.ToString("hh-mm-ss")}"); JavaScriptExecutorHelper.ScrollElementAndClick(BundleSetupsNext); GenericHelper.WaitForLoadingMask(); JavaScriptExecutorHelper.ScrollElementAndClick(BundleSetups); GenericHelper.WaitForLoadingMask(); }
public void SelectProgramVisibilityStartDate(string day, string month, string year) { JavaScriptExecutorHelper.ScrollElementAndClick(SelectPrograDates); GenericHelper.WaitForLoadingMask(); VisibilityStartDate.Click(); GenericHelper.WaitForElement(By.XPath("//div[@data-control='DATA_1']//table[@role='grid']")); /* VisibilityStartDate */ CalenderHelper.SelectDate("//div[@data-control='DATA_1']//table[@role='grid']", day, month, year); GenericHelper.WaitForLoadingMask(); }
public void CheckValidationField(bool fName, bool lName, bool eMail, bool acCode, bool date) { JavaScriptExecutorHelper.ScrollElementAndClick(Validation); GenericHelper.WaitForLoadingMask(); Validation val = new Validation(driver); val.CheckValidationField(fName, lName, eMail, acCode, date); JavaScriptExecutorHelper.ScrollElementAndClick(ValidationNext); Validation.Click(); GenericHelper.WaitForLoadingMask(); }
/// <summary> /// Select multiple grp, then click on create a grp button, take the scr shot and then hit cancel /// </summary> /// <param name="name"></param> public void CreateGrpOfGrpAndCancel(string name) { JavaScriptExecutorHelper.ScrollElementAndClick(createGrp); GenericHelper.WaitForLoadingMask(); GenericHelper.WaitForElement(By.XPath("//h3[text()='Create a Group Of Groups']")); Thread.Sleep(200); TakeScreenShot(name); grp.ClickCancel(); GenericHelper.WaitForLoadingMask(); Thread.Sleep(100); }
public void AddPoints(string maxPointAllow, string pointExpire) { JavaScriptExecutorHelper.ScrollElementAndClick(ConfigureProgram); GenericHelper.WaitForLoadingMask(); JavaScriptExecutorHelper.ScrollElementAndClick(MaximumPointsAllowed); MaximumPointsAllowed.Clear(); MaximumPointsAllowed.SendKeys(maxPointAllow); JavaScriptExecutorHelper.ScrollElementAndClick(PointsExpire); PointsExpire.Clear(); PointsExpire.SendKeys(pointExpire); }
public string SubmitClaim() { JavaScriptExecutorHelper.ScrollElementAndClick(SubmitBtn); GenericHelper.WaitForLoadingMask(); var claimNoStr = GenericHelper.GetText(By.XPath("//form[@id='incentivesForm']/following-sibling::div[position()=1]/div/div")); claimNoStr = claimNoStr.Trim(); var claimNo = claimNoStr.Split(' '); return(claimNo[claimNo.Length - 1]); }
public void AddPointType(string type, string poitAlloc) { PointAllocation.Clear(); PointAllocation.SendKeys(poitAlloc); JavaScriptExecutorHelper.ScrollElementAndClick(PointType); DropDownHelper.SelectByVisibleText(PointType, type); Thread.Sleep(1000); ConfigureProgramNext.Click(); GenericHelper.WaitForLoadingMask(); ConfigureProgram.Click(); GenericHelper.WaitForLoadingMask(); }
/// <summary> /// /// </summary> /// <param name="gridXpath"></param> /// <param name="row"></param> /// <param name="column">Column index should be always 1 for check box</param> public void DuplicateGrp(string gridXpath, int row, int column) { var element = GridHelper.GetGridElement(gridXpath, row, column); element.Click(); JavaScriptExecutorHelper.ScrollElementAndClick(duplicatBtn); GenericHelper.WaitForAlert(); if (GenericHelper.IsAlertPresent()) { ObjectRepository.Driver.SwitchTo().Alert().Accept(); } GenericHelper.WaitForLoadingMask(); }
private void CheckRadioValidationWebElement(IWebElement eleYes, bool yes, IWebElement eleNo) { if (yes) { JavaScriptExecutorHelper.ScrollElementAndClick(eleYes); GenericHelper.WaitForLoadingMask(); } else { JavaScriptExecutorHelper.ScrollElementAndClick(eleNo); GenericHelper.WaitForLoadingMask(); } }
public void AddEligibleGroup(string grpName, bool useNomination, string nominationGrpName) { JavaScriptExecutorHelper.ScrollElementAndClick(EligibleGroup); GenericHelper.WaitForLoadingMask(); JavaScriptExecutorHelper.ScrollToElement(EligibleGroupDropown); DropDownHelper.SelectByVisibleText(EligibleGroupDropown, grpName); UseNominationCheckBox.Click(); JavaScriptExecutorHelper.ScrollToElement(NominationGroupDropown); DropDownHelper.SelectByVisibleText(NominationGroupDropown, nominationGrpName); EligibleGroupNext.Click(); Thread.Sleep(500); EligibleGroup.Click(); GenericHelper.WaitForLoadingMask(); }
public void ClickEditInGrid(string gridXpath, int row, int column) { var edit = GenericHelper.GetElement(By.XPath(gridXpath + "//table//tbody//tr[" + row + "]//td[" + column + "]//button[1]")); if (edit != null) { JavaScriptExecutorHelper.ScrollElementAndClick(edit); } else { Assert.Fail($"Edit Button not fount at {row},{column}"); } }