How to get list of div that contains specific class name in Html Agility?
var DivListContainSpeciicClassName = htmlDoc.DocumentNode.Descendants("div").Where(
d => d.Attributes.Contains("class")
&&
d.Attributes["class"].Value.Contains("cssClassName"));
No comments:
Post a Comment