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

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

            return(page);
        }
Esempio n. 2
0
        public PaymentGatewaySettingsPage ClickPaymentGatewaySettingsMenuItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//ul[@data-bind='foreach: submenu']//span[text()='Payment Gateway Settings']");

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

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

            return(page);
        }