Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 public FactorialPage CalculateFactorial(int Factorial)
 {
     TextBox.SetText($"{Factorial}");
     CalculateBtn.Click();
     return(this);
 }