public void EnterDepositAmount(string amount) { _driver.WaitForElementClickable(InputAmount); InputAmount.Clear(); InputAmount.SendKeys(Keys.Backspace + amount + Keys.Tab); _driver.WaitFieldIsEntered(InputAmount); }
public ViewOfflineWithdrawRequest SetOfflineWithdrawRequest(OfflineWithdrawRequestData data) { InputAmount.Clear(); InputAmount.SendKeys(data.Amount); InputRemarks.Clear(); InputRemarks.SendKeys(data.Remarks); return(Submit()); }
public void Submit(string amount, string playerRemark, string bankName = null, string bonusCode = null) { if (bankName != null) { var bankField = _driver.FindElementWait(By.XPath("//select[@data-bind='value: bankAccount']")); var bankList = new SelectElement(bankField); bankList.SelectByText(bankName); } InputAmount.Clear(); InputAmount.SendKeys(amount); InputRemark.SendKeys(playerRemark); if (bonusCode != null) { InputBonusCode.SendKeys(bonusCode); } ButtonSubmitDeposit.Click(); }
//set amount void Amount(string amount) { InputAmount.Clear(); InputAmount.SendKeys(amount); }