Foxtable(狐表)用户栏目专家坐堂 → [求助]别打我,我又来找关于网页的问题了


  共有2580人关注过本帖树形打印复制链接

主题:[求助]别打我,我又来找关于网页的问题了

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2019/3/25 14:31:00 [显示全部帖子]

Dim web As System.Windows.Forms.WebBrowser = e.Form.Controls("WebBrowser1").Basecontrol
Do Until web.ReadyState = 4
    Application.DoEvents
Loop

Dim areas As object = web.Document.GetElementsByTagName("textarea")
For Each area As object In areas
    If area.Innerhtml.contains("输入运单号查询") Then
        area.SetAttribute("Value", "123abc")
    End If
Next

Dim btns As object = web.Document.GetElementsByTagName("button")
For Each btn As object In btns
    'msgbox(btn.InnerHtml)
    If btn.Innerhtml.contains("获取单号信息") Then
        btn.InvokeMember("click")
    End If
Next


 回到顶部