我想重置页面上的设置,但点击事件不会触发此设置按钮。
它在IE9上工作正常但是当我升级到IE11时它无法正常工作。
这是我的代码:
Sub resetIEvalue()
Dim Browser As Object
Set Browser = CreateObject("InternetExplorer.Application")
With Browser
.Visible = True
.navigate "http://stockprice.vn/a/statistics.html"
While .readyState <> READYSTATE_COMPLETE
DoEvents
Wend
startTime = Timer
Do While startTime + 1 > Timer
Loop
.document.getElementById("button-1025-btnInnerEl").Click ' <= This click event doesn't work on IE11.
End With
Browser.Quit
End Sub
有什么想法吗?