public BankAccountManagerPage SwitchToList()
        {
            var bankAccountstab = _driver.FindElementWait(By.XPath("//ul[@data-view='layout/document-container/tabs']//span[text()='Bank Accounts']"));

            bankAccountstab.Click();
            var page = new BankAccountManagerPage(_driver);

            return(page);
        }
Exemplo n.º 2
0
        public BankAccountManagerPage Close()
        {
            var closeButton = _driver.FindElementWait(By.XPath("//div[@data-view='payments/bank-accounts/status-dialog']//button[text()='Close']"));

            closeButton.Click();
            Thread.Sleep(500);
            var page = new BankAccountManagerPage(_driver);

            return(page);
        }
Exemplo n.º 3
0
        public BankAccountManagerPage ClickBankAccountsItem()
        {
            var menuItem = By.XPath("//span[text()='Bank Accounts']");

            if (_driver.FindElements(menuItem).Count(x => x.Displayed && x.Enabled) == 0)
            {
                GetPaymentMenu.Click();
            }
            var submenu = _driver.FindElementWait(menuItem);

            submenu.Click();
            var page = new BankAccountManagerPage(_driver);

            return(page);
        }