コード例 #1
0
        public PaymentSettingsPage Close()
        {
            var closeButton = _driver.FindElementWait(By.XPath("//div[@data-view='payments/settings/status-dialog']//button[text()='Close']"));

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

            return(page);
        }
コード例 #2
0
        public PaymentSettingsPage SwitchToList()
        {
            var bankAccountstab = _driver.FindElementWait(By.XPath("//ul[@data-view='layout/document-container/tabs']//span[text()='Settings']"));

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

            return(page);
        }
コード例 #3
0
        public PaymentSettingsPage ClickPaymentSettingsMenuItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//ul[@data-bind='foreach: submenu']//span[text()='Payment Settings']");

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

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

            return(page);
        }