【发布时间】:2018-12-19 07:50:06
【问题描述】:
因为不工作? 请帮我! :(
Dim i As Long
Dim IE As Object
Dim Doc As Object
Dim objElement As Object
Dim objCollection As Object
Dim buttonCollection As Object
Dim valeur_heure As Object
' Create InternetExplorer Object
Set IE = CreateObject("InternetExplorer.Application")
' You can uncoment Next line To see form results
IE.Visible = True
' Send the form data To URL As POST binary request
IE.Navigate "http://Mysite/Home/"
Dim elements As Object, element As Object
For Each element In IE.Document.getElementsByTagName("img")
If element.innertext = "r/std/icons/combi64.png" Then
element.Focus
element.Click
Exit For
End If
Next
Set IE = Nothing
【问题讨论】:
-
1) 请正确格式化和编辑您的代码 2) 将 HTML 插入为 sn-p 而不是图像(使用提供的工具) 3) 使您的问题清晰明了 4) 描述 的作用t work 的意思。错误信息?这些是什么?哪几行?你尝试了什么?
-
据我所知,您也没有发送 POST 二进制请求。而且我在提供的图片中看不到 r/std/icons/combi64.png。
标签: html vba ms-access web-scraping onclick