Foxtable(狐表)用户栏目专家坐堂 → [求助]模拟打开网页中的链接


  共有2308人关注过本帖平板打印复制链接

主题:[求助]模拟打开网页中的链接

帅哥哟,离线,有人找我吗?
Hyphen
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:狐神 帖子:5015 积分:25363 威望:0 精华:0 注册:2015/8/18 9:21:00
  发帖心情 Post By:2016/5/14 10:55:00 [只看该作者]

Dim hec As System.Windows.Forms.HtmlElementCollection = web.Document.GetElementsByTagName("A")

For i As Integer = 0 To hec.Count-1
    If hec(i).InnerHtml.Contains("猛击这里") Then
        hec(i).InvokeMember("click")
        Exit For
    End If
Next

 回到顶部