コード例 #1
0
        public static void RefreshPage()
        {
            SeleniumDriver.driver.Navigate().Refresh();

            AdminPageHelper.AdminButtonClick();

            AdminPageHelper.SwitchToIframeInContainerId(IframeInContainerId);

            GoToActiveTab();

            WaitHelper.WaitUntilTableIsVisible(GridId);

            if (!string.IsNullOrWhiteSpace(DropDownTaxonomyName))
            {
                DropDownTaxonomyClick();

                IList <IWebElement> containers = DropDownGetContainers();

                IList <IWebElement> optionslist = containers[containers.Count - 1].FindElements(By.TagName("li"));

                IWebElement option = optionslist[DropDownTaxonomyValue];

                WaitHelper.Wait.Until(ExpectedConditions.ElementToBeClickable(option));

                option.Click();

                WaitHelper.WaitToFinishloading();
            }
        }
コード例 #2
0
 public static void CreateNewClick()
 {
     WaitHelper.WaitUntilTableIsVisible(GridId);
     WaitHelper.Wait.Until(ExpectedConditions.ElementToBeClickable(By.XPath("//*[@id='" + GridId + "']/div[1]/a")));
     SeleniumDriver.driver.FindElement(By.XPath("//*[@id='" + GridId + "']/div[1]/a")).Click();
     WaitHelper.WaitToFinishloading();
 }
コード例 #3
0
        public static IList <IWebElement> GetGridRows()
        {
            WaitHelper.WaitUntilTableIsVisible(GridId);

            var grid  = SeleniumDriver.driver.FindElement(By.Id(GridId));
            var table = grid.FindElement(By.TagName("tbody"));

            tableRows = table.FindElements(By.TagName("tr"));
            return(tableRows);
        }