Exemplo n.º 1
0
 public void EnterDepositAmount(string amount)
 {
     _driver.WaitForElementClickable(InputAmount);
     InputAmount.Clear();
     InputAmount.SendKeys(Keys.Backspace + amount + Keys.Tab);
     _driver.WaitFieldIsEntered(InputAmount);
 }
Exemplo n.º 2
0
        public ViewOfflineWithdrawRequest SetOfflineWithdrawRequest(OfflineWithdrawRequestData data)
        {
            InputAmount.Clear();
            InputAmount.SendKeys(data.Amount);
            InputRemarks.Clear();
            InputRemarks.SendKeys(data.Remarks);

            return(Submit());
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
 //set amount
 void Amount(string amount)
 {
     InputAmount.Clear();
     InputAmount.SendKeys(amount);
 }