代码
private void AppraiseClick()
{
HtmlElementCollection elementsByTagName = this.webBrowser1.Document.GetElementsByTagName("a");
for (int i = 0; i < elementsByTagName.Count; i++)
{
HtmlElement element = this.webBrowser1.Document.GetElementsByTagName("a")[i];
if (element.OuterText == "需要评价")
{
element.InvokeMember("click");
}
}
}
{
HtmlElementCollection elementsByTagName = this.webBrowser1.Document.GetElementsByTagName("a");
for (int i = 0; i < elementsByTagName.Count; i++)
{
HtmlElement element = this.webBrowser1.Document.GetElementsByTagName("a")[i];
if (element.OuterText == "需要评价")
{
element.InvokeMember("click");
}
}
}