2010-05-24 52 views
0

我想所有的LI与类类型等于itempep华廷是那里PROGRAME这个

这是我现在该怎么做,但它非常CPU密集型任务

ElementCollection EL =框架更有效的方式.Elements.Filter(Find.By(“tagname”,“LI”)& & Find.ByClass(“itempep_hp”));

有没有更有效的方法来做到这一点?

TIA

回答

2

你需要ElementCollection?这可能会更快:

frame.ElementsWithTag("LI").Where(e => e.ClassName == "itempep_hp"); 
+0

frame.ElementsWithTag( “LI”) 谢谢,很多上述的方法更快 – Sendoh 2010-05-24 17:00:23