Jump to content

Click link on search result

Recommended Posts


I am using Windows 7, 64 bit and IE9.

I intend to click a link on gooogle search result. The last "Click" is not workable to enter into the web page. Attached is my code:

Error shows:

--> IE.au3 V2.4-0 Error from function _IEPropertyGet, $_IEStatus_InvalidObjectType

Could anyone kindly help me on this?

Thank you very much in advance.


New Text Document.au3

Edited by seesee
Link to post
Share on other sites

Well, you have to be very sure you'll get a link with text "Peugeot - Pricing & Specification". Maybe it's better to test each word separately. Something like:

For $oLink in $oLinks
    $sLinkText = _IEPropertyGet($oLink, "innerText")
    If StringInStr($sMyString,"Peugeot") Then
        If StringInStr($sMyString,"Pricing") Then
            If StringInStr($sMyString,"Specification") Then

For example for me do not appear text "Peugeot - Pricing & Specification" on the first page.

When the words fail... music speaks
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...