我想使用通过vba单击按钮,但它告诉我,“对象不支持此属性或方法”。如何通过VBA单击网页上的按钮?
我的VBA代码现在的问题是:
IE.document.getElementByType("button").getelementByClass("qm_historyTab_GoButton").Click
该按钮的HTML是:
<button class="qm_historyTab_GoButton" type="submit" style="font:normal 11px tahoma,arial,helvetica,sans serif;">
<span class="qm_historyTab_GoButtonText">GO</span>
</button>
'getElementByType' >>'getElementByTagName'和'getelementByClass( “qm_historyTab_GoButton”)''>> getElementsByClassName方法( “qm_historyTab_GoButton”)(0)' –
我试着用这一点,但没有奏效。为了确保我没有搞砸,我附上我的代码:'IE.document.getelementByClass(“qm_historyTab_GoButton”)(0).Click' – Sheldon
'getelementByClass'不是一件事,正如我在我的评论。 –