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); }
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); }
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); }
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); }
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); }
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); }
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); }