Exemplo n.º 1
0
        public BrandManagerPage Close()
        {
            var closeButton = _driver.FindElementWait(By.XPath("//div[@data-view='brand/brand-manager/status-dialog']//button[text()='Close']"));

            closeButton.Click();
            Thread.Sleep(500);
            var page = new BrandManagerPage(_driver);

            return(page);
        }
Exemplo n.º 2
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);
        }