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