예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }