I logged in a website by the following code:
Set HTMLDoc = IE.document
With HTMLDoc
HTMLDoc.getElementById("edLoginName").Value = "XXXX"
HTMLDoc.getElementById("edKennwort").Value = "XXX"
End With
Set objCollection = IE.document.getElementById("pbAnmelden")
objCollection.Click
After login, I want to double click on word "Online Search" to move to another section with the following code
Inspect element:
""<""span class="zeidontext" id="olTree_node_3" style="cursor: pointer;">Online Search""<""/span>""
Set objCollection1 = IE.document.getElementById("olTree_node_3")
objCollection1.Click
But I get:
Runtime error 424- Object required