void ReleaseDesignerOutlets() { if (Build != null) { Build.Dispose(); Build = null; } if (CalculateBtn != null) { CalculateBtn.Dispose(); CalculateBtn = null; } if (ResultLabel != null) { ResultLabel.Dispose(); ResultLabel = null; } if (TipPercentSegment != null) { TipPercentSegment.Dispose(); TipPercentSegment = null; } }
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(); }
public FactorialPage CalculateFactorial(int Factorial) { TextBox.SetText($"{Factorial}"); CalculateBtn.Click(); return(this); }
public void Calculate() { CalculateBtn.Submit(); Thread.Sleep(500); }