protected ReadOnlyCollection <IWebElement> GetLineAction(string lineName) { if (LineTemplate != null && LineTemplate.GetByLocator().Contains("%s")) { return(Table.GetWebElement().FindElements(LineTemplate.FillByTemplate(lineName))); } int index = 0;//GetIndex(Headers(), lineName) + 1; TODO return(LineTemplate == null?GetLineAction(index) : Table.GetWebElement().FindElements(LineTemplate.FillByTemplate(index))); }
protected IList <IWebElement> GetLineAction(string lineName) { if (LineTemplate != null && LineTemplate.GetByLocator().Contains("{0}")) { return(Table.WebElement.FindElements(LineTemplate.FillByTemplate(lineName))); } var index = Headers.IndexOf(lineName) + 1; return(LineTemplate == null ? GetLineAction(index) : Table.GetWebElement().FindElements(LineTemplate.FillByTemplate(index))); }
public IList <IWebElement> GetLineAction(int colNum) { return(Table.GetWebElement().FindElements((LineTemplate ?? DefaultTemplate).FillByTemplate(colNum)).ToList()); }
protected ReadOnlyCollection <IWebElement> GetLineAction(int colNum) { return(Table.GetWebElement().FindElements((LineTemplate ?? DefaultTemplate).FillByTemplate(colNum))); }