View Single Post
 
Old 05-30-2012, 11:02 PM
tinfanide tinfanide is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default IE automation: How to auto-click the first link on the search query page?

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?
Reply With Quote