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 EnterProductDetails(string skuNo = null, string srialNo = null, string qty = null) { if (!string.IsNullOrEmpty(skuNo)) { ProductSKUNumber.SendKeys(skuNo); } if (!string.IsNullOrEmpty(srialNo)) { ProductSerialNo.SendKeys(srialNo); } if (!string.IsNullOrEmpty(qty)) { Quantity.SendKeys(qty); } JavaScriptExecutorHelper.ScrollElementAndClick(AddBtn); GenericHelper.WaitForLoadingMask(); Thread.Sleep(200); JavaScriptExecutorHelper.ScrollToElement(CalculateBtn); CalculateBtn.Click(); GenericHelper.WaitForLoadingMask(); }