如何使用 VBScript 单击网页上的普通按钮?
How to click a plain button on a webpage using VBScript?
我在这样的网站上有一个按钮
<button>
Like
</button>
有谁知道如何使用 VBScript 找到并单击此按钮?
由于他没有身份证或其他东西我不知道如何找到按钮。
看来我是在回答我自己的问题。搜索得越多,学得越快。
Set Butlike = IE.Document.getElementsByTagName("button")
if btn.textContent= "Like" then
btn.Click()
End if
我在这样的网站上有一个按钮
<button>
Like
</button>
有谁知道如何使用 VBScript 找到并单击此按钮? 由于他没有身份证或其他东西我不知道如何找到按钮。
看来我是在回答我自己的问题。搜索得越多,学得越快。
Set Butlike = IE.Document.getElementsByTagName("button")
if btn.textContent= "Like" then
btn.Click()
End if