Jump to content

Click link on search result


seesee
 Share

Recommended Posts

Hi,

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.

Susan

New Text Document.au3

Edited by seesee
Link to comment
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
                _IEAction($oLink,"click")
            EndIf
        EndIf
    EndIf
Next

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

When the words fail... music speaks.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...