C#,WebBrowser中模拟鼠标点击下一页

如何在WebBrowser中模拟鼠标点击
HtmlDocument doc = this.webBrowser1.Document;
              
                for (int i = 0; i < doc.All.Count; i++)
                {
                    if (doc.All[i].TagName == "A")
                    {
                        HtmlElement myelement = doc.All[i];
                        if (myelement.OuterText == "下一页")
                        {
                            myelement.InvokeMember("click");
                        }
                    }
                }

by 雪洁 2011-09-16 10:35:21 5296 views
我来说几句

相关文章