Code:
For Each oAnchor In IE.Document.anchors
Debug.Print oAnchor.href
If oAnchor.href Like "something" Then
MsgBox oAnchor.href
End If
Next oAnchor
From the IE console, I could inspect the href of the first link on the Google search query page. However, I cannot find the exact link when I loop through the search page.
How can I automate clicking the first result link on Google?