【发布时间】:2018-05-05 20:53:03
【问题描述】:
我正在尝试使用 Internet Explorer 和 MS-Access VBA 在一系列网页上自动填写交易。我已经做了很多这样的事情,但我被这一对页面难住了。我使用这样的代码:
Set htmlDoc = ie.Document
With htmlDoc
Set e = .getElementById("j_idt31_data")
If e Is Nothing Then GoTo FileAppeal_Error
Set elems = e.getElementsByClassName("ui-widget-content ui-datatable-odd ui-datatable-selectable")
For Each e In elems
If InStr(1, e.innerText, "Evans ") > 0 Then
e.Click
Exit For
End If
Next
结束
我从这个页面开始: https://boe.shelbycountytn.gov/eFile/taxrep.xhtml, 单击左侧的单选按钮之一,然后单击 [提交],这将带我到 https://boe.shelbycountytn.gov/eFile/search.xhtml
但我不知道如何以编程方式让 [提交] 按钮成功。当我以编程方式单击它时,我收到“需要税务代表”错误消息。
非常感谢您的建议。
【问题讨论】:
标签: vba internet-explorer