public bool IsMessageDisplayed() { return(!WaitHelper.Try( () => dialog.GetElement() .ById(Locators.requiredFieldValidatorID) .ByAttribute(WEBUIautomation.Tags.TagAttributes.Style, Locators.noMesageStyleValue))); }
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(); }
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()); }
public static WebElement GetRootNode(IWebDriverExt driver) { return(driver.GetElement() .ByTagName(WEBUIautomation.Tags.TagNames.Li) .ByClass(ContentLocators.Locators.TreeHelperLocators.rootFolderClassValue)); }