Exemple #1
0
        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)));
        }
Exemple #2
0
        protected IList <IWebElement> GetLineAction(string lineName)
        {
            if (LineTemplate != null && LineTemplate.GetByLocator().Contains("{0}"))
            {
                return(Table.WebElement.FindElements(LineTemplate.FillByTemplate(lineName)));
            }
            var num = Headers.IndexOf(lineName) + 1;

            return(LineTemplate == null
                ? GetLineAction(num)
                : Table.GetWebElement().FindElements(LineTemplate.FillByTemplate(num)));
        }