I am trying to open an Internet Explorer window navigate to this weather website then click on the button to start the animation for the weather map. I cannot get the code to click the button. I tried getelementsbyName but I cannot find the Name. I think I found the ID (using another script to list the element ID's) so I am trying getelementsbyID and it is not working. I get an error "Object doesn't support this property or method:" This should be simple but I have very little experience. Any suggestions to click this button with VBS would be greatly appreciated.
Element: <div class="play-pause iconfont clickable off" data-ref="play"></div>
Website: https://www.windy.com/-Weather-radar-radar?radar,40.229,-83.364,5
Dim objWshShell,IE
Set objWshShell = Wscript.CreateObject("Wscript.Shell")
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True
.Navigate "https://www.windy.com/-Weather-radar-radar?radar,40.229,-83.364,5"
'Wait for Browser
Do While .Busy
WScript.Sleep 10000
Loop
.documents.getElementsByID("playpause").Click()
End With