Esempio n. 1
0
        public IpRegulationManagerPage ClickIpRegulationManagerMenuItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//span[text()='IP Regulation Manager']");

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

            submenu.Click();
            return(new IpRegulationManagerPage(_driver));
        }
Esempio n. 2
0
        public LanguageManagerPage ClickLanguageManagerMenuItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//ul[@data-bind='foreach: submenu']//span[text()='Language Manager']");

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

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

            return(page);
        }
Esempio n. 3
0
        public BrandIpRegulationsPage ClickBrandIpRegulationsMenuItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//span[text()='Brand IP regulations']");

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

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

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