【发布时间】:2016-04-25 16:47:13
【问题描述】:
我是 Excel VBA 的新手。我目前正在做 excel IE 自动化,我想点击网页上的标签。
HTML源代码为:
<td class = t19TabItem><a href="javascript:apex.submit('D_Price');">Compliance</a></td>
点击标签合规性的任何帮助。
我使用下面的代码,通过使用内部 html 找到了标签合规性,但它没有点击合规性选项卡。它会抛出错误,因为对象没有此属性。
set link=IE.document.getElementsByTagName("a")
if link.InnerHTML="compliance" and link.href="javascript:apex.submit('D_Price')" then
click link
end if
如何点击合规标签?
【问题讨论】:
-
上述问题的html源代码
合规性