Exemplo n.º 1
0
 public bool IsMessageDisplayed()
 {
     return(!WaitHelper.Try(
                () => dialog.GetElement()
                .ById(Locators.requiredFieldValidatorID)
                .ByAttribute(WEBUIautomation.Tags.TagAttributes.Style, Locators.noMesageStyleValue)));
 }
Exemplo n.º 2
0
        private void selectWorkloadTab(WorkloadMenu tab)
        {
            int tabIndex = (int)tab;

            string tabXPathLocator = string.Format("{0}{1}{2}", Locators.firstPartXPathLocator, tabIndex, Locators.lastPartXPathLocator);

            WebElement tabListItem = TabsFrame.GetElement().ByXPath(tabXPathLocator);;

            tabListItem.Click();
        }
Exemplo n.º 3
0
        public static WebElement FindTreeItemByName(this IWebDriverExt driver, string text)
        {
            string xPathItemLocator = string.Format(".//li/div/span[@class='rtIn'][text()='{0}']", text);

            return(driver.GetElement().ByXPath(xPathItemLocator).ReturnFound());
        }
Exemplo n.º 4
0
 public static WebElement GetRootNode(IWebDriverExt driver)
 {
     return(driver.GetElement()
            .ByTagName(WEBUIautomation.Tags.TagNames.Li)
            .ByClass(ContentLocators.Locators.TreeHelperLocators.rootFolderClassValue));
 }