tags:

views:

77

answers:

1

I want to get all LI with class type equals itempep

This is how I do it now, but its very CPU intensive task

ElementCollection eL = frame.Elements.Filter(Find.By("tagname", "LI") && Find.ByClass("itempep_hp"));

Is there a more efficient way of doing this?

TIA

A: 

Do you need ElementCollection? This could be faster:

frame.ElementsWithTag("LI").Where(e => e.ClassName == "itempep_hp");
prostynick
frame.ElementsWithTag("LI")Thanks, lots of faster with the method above
Sendoh