Sign in to follow this  
Followers 0
Wanja

Click Link in IE

1 post in this topic

#1 ·  Posted (edited)

I'm not able to find the orange "Download" link (on the right side) when parsing the DOM of the following page:

http://emumovies.com/forums/files/file/1207-gamecube-video-snaps-240p/

My try:

#include <IE.au3>

Local $oIE = _IECreate("http://emumovies.com/forums/files/file/1207-gamecube-video-snaps-240p/")

Local $sMyString = "240"

Local $oLinks = _IELinkGetCollection($oIE)

For $oLink In $oLinks

    Local $sLinkText = _IEPropertyGet($oLink, "href")

     MsgBox(null,"Test",$sLinkText)

    If StringInStr($sLinkText, $sMyString) Then
        _IEAction($oLink, "click")
        ExitLoop
    EndIf

Next

Exit

 

When inspecting the link I receive this:

<a class="download_button rounded right" href="http://emumovies.com/forums/files/go/12858174aa2ef8356c0b0fa68b6a25b0/gamecube-video-snaps-240p">Download</a>

 

Can you guys help me?

 

Greetings,

Wanja

 

 

 

 

 

 

 

Edited by Wanja

Share this post


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
Sign in to follow this  
Followers 0