Currently I'm making a bot which ultimately should simply play a song on a website, but the bot simply is unable to click the button. I aquired the name of the button by inspecting the HTML code on the website. I will show my code below and also add a picture which shows what might be wrong with my code:
set webbrowser = createobject("internetexplorer.application")
webbrowser.statusbar = false
webbrowser.toolbar = false
webbrowser.menubar = false
webbrowser.visible = true
webbrowser.navigate("https://skiomusic.com/gravit/noah-kahan-hurt-somebody-gravi-t-remix")
WScript.sleep(8000)
webbrowser.document.all.item("div.playBtn").click
WScript.sleep(10000)
webbrowser.Quit
Line 11, character: 1, error: object required, source: microsoft runtime error
My question is obviously, how do I fix this error?