Exemplo n.º 1
0
        public VipLevelManagerPage ClickVipLevelManagerMenuItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//ul[@data-bind='foreach: submenu']//span[text()='VIP Level Manager']");

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

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

            return(page);
        }
Exemplo n.º 2
0
        public SupportedProductsPage ClickSupportedProductsMenuItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//span[text()='Supported Products']");

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

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

            return(page);
        }
Exemplo n.º 3
0
        public BrandManagerPage ClickBrandManagerItem()
        {
            var menuItem = By.XPath("//span[text()='Brand Manager']");

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

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

            return(page);
        }