namson93 Posted August 5, 2011 Share Posted August 5, 2011 #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 Link to comment Share on other sites More sharing options...
wakillon Posted August 5, 2011 Share Posted August 5, 2011 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.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now