public void ClickAddBankAccountButton()
 {
     WebElementHelper.WaitUntilElementClickable(_webDriver,
                                                _addBankAccountButtonByXPath);
     WebElementHelper.ClickAndWaitForPageToLoad(_webDriver,
                                                _addBankAccountButtonByXPath);
 }
示例#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);
        }
示例#3
0
 public void ClickSubmitButton()
 {
     WebElementHelper.WaitUntilElementVisible(_webDriver, _continueButtonById);
     WebElementHelper.WaitUntilElementClickable(_webDriver, _continueButtonById);
     WebElementHelper.ClickAndWaitForPageToLoad(_webDriver, _continueButtonById);
 }
示例#4
0
 public void ClickBankAccountsSubMenu()
 {
     WebElementHelper.ClickAndWaitForPageToLoad(_webDriver, By.XPath(@"//a[@data-name=""navigation-menu/accounting/bank-accounts""]"));
 }
示例#5
0
 public void ClickSubmitButton()
 {
     WebElementHelper.ClickAndWaitForPageToLoad(_webDriver, _submitButtonById);
 }