HtmlElement dropdownId = contentDoc.GetElementById("website"); HtmlElementCollection liTags = dropdownId.GetElementsByTagName("li"); foreach (HtmlElement liTagInner in liTags) { if (liTagInner != null && liTagInner.InnerText != null) { if(liTagInner.InnerText.Equals("about", StringComparison.InvariantCultureIgnoreCase)) { liTagInner.InvokeMember("click"); // } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)