Jump to content

[Solved] Click on Text doesn't work for me...


Recommended Posts

I've made a small change to big_daddy's code (adding a String function).

Give it a try and see if it doesn't work for you...

Dale

#include <IE.au3>

$sURL = "somewhere.com"
$sSearch = "Text Link"

$oIE = _IECreate($sURL)
$oFrame = _IEFrameGetObjByName($oIE, "options")
$oDivs = _IETagNameGetCollection($oFrame, "DIV")
For $oDiv In $oDivs
    If String(_IEPropertyGet($oDiv, "InnerText")) = $sSearch Then
        _IEAction($oDiv, "click")
        _IELoadWait($oIE)
        ExitLoop
    EndIf
Next

Hi, I have similar problem where i have to click on a text "Download Now" but it shows error in the string part.. what might be my mistake

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...