Ecolab.Pages.WETabPage.GetSpecificCustomerGridRow C# (CSharp) Method

GetSpecificCustomerGridRow() public method

Gets the specific customer grid row.
public GetSpecificCustomerGridRow ( string strText ) : HtmlControl
strText string The string text.
return HtmlControl
        public HtmlControl GetSpecificCustomerGridRow(string strText)
        {
            HtmlControl ctrl = GetHtmlControl<HtmlControl>(guiMap, "WETabGridTableRows");
            ICollection<Element> ele = ctrl.ChildNodes;
            foreach (Element e in ele)
            {
                if (e.InnerText.Contains(strText))
                {
                    return (new HtmlControl(e));
                }
            }
            return null;
        }