Sign in to follow this  
Followers 0
namson93

Can't click text link

2 posts in this topic

#include <IE.au3>
$oIE = _IECreate("http://www.yopmail.com/en/?okbd38")
 
$sMyString = "http://www.liberty-loan.com/confirm/"
$oLinks = _IELinkGetCollection($oIE)
For $oLink in $oLinks
    $sLinkText = _IEPropertyGet($oLink, "innerText")
    If StringInStr($sLinkText, $sMyString) Then
        _IEAction($oLink, "click")
        ExitLoop
    EndIf
Next

I find it click on the link http://www.liberty-loan.com/confirm/okbd38/8fc602a7 without straps.

Test the google test is all ok but the web mail, it is not ok

Share this post


Link to post
Share on other sites



I find it click on the link http://www.liberty-loan.com/confirm/okbd38/8fc602a7 without straps.

Test the google test is all ok but the web mail, it is not ok

If confirm link is always the same you can use _IENavigate, because there is no way to click on the links

Otherwise try this

#include <IE.au3>

$oIE = _IECreate ( "http://www.yopmail.com/en/?okbd38" )
$oFrames = _IEFrameGetCollection ( $oIE )
$iNumFrames = @extended
For $i = 0 To ( $iNumFrames - 1 )
    $oFrame = _IEFrameGetCollection ( $oIE, $i )
    $_FrameLink = _IEPropertyGet ( $oFrame, "locationurl" )
    If StringInStr ( $_FrameLink, 'mail.php' ) <> 0 Then
        _IENavigate ( $oIE, $_FrameLink )
        $oLinks = _IELinkGetCollection ( $oIE )
        For $oLink In $oLinks
            If StringInStr ( $oLink.href, '/confirm/' ) <> 0 Then
                _IENavigate ( $oIE, $oLink.href )
                ExitLoop 2
            EndIf
        Next
    EndIf
Next

It returns to the login page.


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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