public LicenseeManagerPage Close()
        {
            var closeButton = _driver.FindElementWait(By.XPath("//div[@data-view='licensee-manager/status-dialog']//button[text()='Close']"));

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

            return(page);
        }
예제 #2
0
        public LicenseeManagerPage ClickLicenseeManagerItem()
        {
            var menuItem = By.XPath("//div[@id='sidebar']//span[text()='Licensee Manager']");

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

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

            return(page);
        }