Ecolab.Pages.ContactsTabPage.GetSpecificContactsGridRow C# (CSharp) Method

GetSpecificContactsGridRow() public method

Gets the specific Contacts grid row.
public GetSpecificContactsGridRow ( string strText ) : HtmlControl
strText string The string text.
return HtmlControl
        public HtmlControl GetSpecificContactsGridRow(string strText)
        {
            HtmlControl ctrl = GetHtmlControl<HtmlControl>("ContactsTableGridRow");
            ICollection<Element> ele = ctrl.ChildNodes;
            foreach (Element e in ele)
            {
                if (e.InnerText.Contains(strText.ToLower(CultureInfo.CurrentCulture)))
                {
                    return (new HtmlControl(e));
                }
            }
            return null;
        }
        /// <summary>