public void ClickAddBankAccountButton()
 {
     WebElementHelper.WaitUntilElementClickable(_webDriver,
                                                _addBankAccountButtonByXPath);
     WebElementHelper.ClickAndWaitForPageToLoad(_webDriver,
                                                _addBankAccountButtonByXPath);
 }
Beispiel #2
0
        public void SelectBankName(string bankName)
        {
            By elementLocator;

            // TODO support other banks
            switch (bankName)
            {
            case "ANZ(NZ)": elementLocator = _anzDropdownByXPath;
                break;

            default: throw new NotSupportedException("not supported bank: <null>");
            }

            WebElementHelper.WaitUntilElementClickable(_webDriver, elementLocator);
            WebElementHelper.ClickAndWaitForPageToLoad(_webDriver, elementLocator);
        }
Beispiel #3
0
 public void ClickSubmitButton()
 {
     WebElementHelper.WaitUntilElementVisible(_webDriver, _continueButtonById);
     WebElementHelper.WaitUntilElementClickable(_webDriver, _continueButtonById);
     WebElementHelper.ClickAndWaitForPageToLoad(_webDriver, _continueButtonById);
 }
Beispiel #4
0
 public void InputAccountName(string accountName)
 {
     WebElementHelper.WaitUntilElementClickable(_webDriver, _accountNameTextBoxById).SendKeys(accountName);
 }