Esempio n. 1
0
        public PlayerDepositVerifyPage ClickPlayerDepositVerifyItem()
        {
            var menuItem = By.XPath("//span[text()='Player Deposit Verify']");

            if (_driver.FindElements(menuItem).Count(x => x.Displayed && x.Enabled) == 0)
            {
                GetPaymentMenu.Click();
            }
            _driver.ScrollPage(800, 0);
            GetPlayerDepositVerifyMenuItem.Click();
            var page = new PlayerDepositVerifyPage(_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);
        }
Esempio n. 3
0
        public PlayerBankAccountVerifyPage ClickPlayerBankAccountVerifyMenuItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//span[text()='Player Bank Account Verify']");

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

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

            return(page);
        }
Esempio n. 4
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);
        }
Esempio n. 5
0
        public OfflineDepositConfirmPage ClickOfflineDepositConfirmMenuItem()
        {
            var menuItem = By.XPath("//span[text()='Offline Deposit Confirm']");

            if (_driver.FindElements(menuItem).Count(x => x.Displayed && x.Enabled) == 0)
            {
                GetPaymentMenu.Click();
            }
            _driver.ScrollPage(800, 0);
            GetOfflineDepositConfirmMenuItem.Click();
            var page = new OfflineDepositConfirmPage(_driver);

            page.Initialize();
            return(page);
        }
Esempio n. 6
0
        public OfflineWithrawalApprovalPage ClickOfflineWithdrawalApprovalMenuItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//span[text()='Offline Withdrawal Approval']");

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

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

            page.Initialize();
            return(page);
        }
Esempio n. 7
0
        public PlayerDepositApprovePage ClickPlayerDepositApproveItem()
        {
            var menuItem = By.XPath("//span[text()='Player Deposit Approve']");

            if (_driver.FindElements(menuItem).Count(x => x.Displayed && x.Enabled) == 0)
            {
                GetPaymentMenu.Click();
            }
            _driver.ScrollPage(800, 0);
            _driver.FindElementWait(By.XPath("//span[text()='Player Deposit Approve']"));
            GetPlayerDepositApproveMenuItem.Click();
            var page = new PlayerDepositApprovePage(_driver);

            page.Initialize();
            return(page);
        }