public TransferSettingsPage Close()
        {
            var closeButton = _driver.FindElementWait(By.XPath("//div[@data-view='payments/transfer-settings/status-dialog']//button[text()='Close']"));

            closeButton.Click();
            var page = new TransferSettingsPage(_driver);

            return(page);
        }
Exemplo n.º 2
0
        public TransferSettingsPage SwitchToList()
        {
            var bankAccountstab = _driver.FindElementWait(By.XPath("//ul[@data-view='layout/document-container/tabs']//span[text()='Settings']"));

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

            return(page);
        }
Exemplo n.º 3
0
        public TransferSettingsPage ClickTransferSettingsMenuItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//ul[@data-bind='foreach: submenu']//span[text()='Transfer Settings']");

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

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

            return(page);
        }