ra95 0 Posted July 27, 2011 Hi gui, I have a problem with a IE access to https page https://meraswitch.uno.it/ I have use debug bar for see the code: from link: <A id=overridelink href="https://meraswitch.uno.it/" name=overridelink>Continuare con il sito Web (scelta non consigliata). </A> From HTML: <H4 id=continueToSite><IMG id=ImgOverride class=actionIcon border=0 alt="Icona Non consigliata" src="red_shield.png"><A id=overridelink href="https://meraswitch.uno.it/" name=overridelink>Continuare con il sito Web (scelta non consigliata). </A></H4> I have try all: $sMyString = "Continuare " $oLinks = _IELinkGetCollection($oIE) For $oLink in $oLinks $sLinkText = _IEPropertyGet($oLink, "innerText") ConsoleWrite ( "-->-- $sLinkText : " & $sLinkText & @Crlf ) If StringInStr($sLinkText, $sMyString) Then _IEAction($oLink, "click") ExitLoop EndIf Next Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended MsgBox(0, "Link Info", $iNumLinks & " links found", 2) For $oLink In $oLinks If StringInStr($oLink.href, "https://meraswitch.uno.it/") Then MsgBox(0, "Link Info", $oLink.href, 2) $oLink.click _IEAction($oLink,"click") EndIf Next but not work something can help me please Thank you in advance Antonio Share this post Link to post Share on other sites
sleepydvdr 8 Posted July 27, 2011 (edited) You may have to adjust the script because your browser is not in English. But this worked for me. #include <IE.au3> $oIE = _IECreate("https://meraswitch.uno.it/") $oSubmit = _IEGetObjByName ($oIE, "overridelink") _IEAction ($oSubmit, "click") Edited July 27, 2011 by sleepydvdr #include <ByteMe.au3> Share this post Link to post Share on other sites
ra95 0 Posted August 1, 2011 (edited) You may have to adjust the script because your browser is not in English. But this worked for me. #include <IE.au3> $oIE = _IECreate("https://meraswitch.uno.it/") $oSubmit = _IEGetObjByName ($oIE, "overridelink") _IEAction ($oSubmit, "click") Hi sleepydvdr , i have try the code but not work for me, i have grabbed HTML page: expandcollapse popup<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML DIR="LTR"> <HEAD> <link rel="stylesheet" type="text/css" href="ErrorPageTemplate.css" > <META NAME="MS.LOCALE" CONTENT="IT-IT"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes"> <TITLE>Errore di certificato: esplorazione bloccata</TITLE> <script src="errorPageStrings.js" LANGUAGE="javascript" type="text/javascript"> </SCRIPT> <script src="httpErrorPagesScripts.js" language="javascript" type="text/javascript"> </script> <script src="invalidcert.js" LANGUAGE="javascript" type="text/javascript"> </SCRIPT> </HEAD> <body ONLOAD="BodyLoad(); initMoreInfo('infoBlockID');" class="securityError"> <table width="730" cellpadding="0" cellspacing="0" border="0"> <!-- Main title --> <tr> <td id="shieldIconAlign" width="60" align="left" valign="top" rowspan="3"> <img src="red_shield_48.png" id="shieldIcon" alt="Icona Scudo di protezione"> </td> <td id="mainTitleAlign" valign="middle" align="left" width="*"> <h1 id="mainTitle">Si è verificato un problema con il certificato di protezione del sito Web.</h1> </td> </tr> <tr> <td> <h3> <DIV ID="linkdiv" name="linkdiv" ></DIV> </h3> </td> </tr> <tr> <!-- This row is for the the divider--> <td id="errorCodeAlign" class="errorCodeAndDivider" align="right"> <div class="divider"></div> </td> </tr> <!-- Error Body --> <tr> <td></td> <td> <h3> <DIV ID="CertUnknownCA" name="CertUnknownCA" style="display='none'"></DIV> <DIV ID="CertExpired" name="CertExpired" style="display='none'"></DIV> <DIV ID="CertCNMismatch" name="CertCNMismatch" style="display='none'"></DIV> <DIV ID="CertRevoked" name="CertRevoked" style="display='none'"></DIV> <noscript id="securityCert1">Il certificato di protezione presentato dal sito Web contiene errori e proviene da una Autorità di certificazione non disponibile nell'elenco locale. </noscript><br> <ID id="securityCert2">l problemi relativi al certificato di protezione possono indicare un tentativo di ingannare l'utente o di intercettare i dati inviati al server.</ID> </h3> </td> </tr> <!-- Recommendation--> <tr> <td> </td> <td><H2 id="recommendation"><b>È consigliabile chiudere la pagina Web e interrompere l'esplorazione del sito Web. </b></H2></td> </tr> <!-- close webpage--> <tr> <td > </td> <td id="closeWebpageAlign" align="left" valign="middle"> <h4 id="closeWebpage"> <img src="green_shield.png" border="0" alt="Icona Consigliato" class="actionIcon"><a href="javascript:closePage()">Fare clic qui per chiudere la pagina Web.</a> </h4> </td> </tr> <!-- continue to site--> <tr> <td > </td> <td id="continueToSiteAlign" align="left" valign="middle"> <h4 id="continueToSite"> <img src="red_shield.png" ID="ImgOverride" border="0" alt="Icona Non consigliata" class="actionIcon"><A href='' ID="overridelink" NAME="overridelink" >Continuare con il sito Web (scelta non consigliata). </A> </h4> </td> </tr> <!-- InfoBlock --> <tr> <td id="infoBlockAlign" align="right" valign="top"> </td> <td id="moreInformationAlign" align="left" valign="middle"> <h4> <table> <tr> <td valign="top"> <a href="#" onclick="javascript:expandCollapse('infoBlockID', true); return false;"><img src="down.png" id="infoBlockIDImage" border="0" class="actionIcon" alt="Ulteriori informazioni"></a> </td> <td valign="top"> <span id="moreInfoContainer"></span> <noscript><ID id="moreInformation">Ulteriori informazioni</ID></noscript> </td> </tr> </table> </h4> <div id="infoBlockID" class="infoBlock" style="display: none"> <p> <li id="errorExpl1">Se questa pagina è stata aperta facendo clic su un collegamento, controllare l'indirizzo del sito Web sulla barra degli indirizzi per verificare che sia quello previsto.</li> <li id="errorExpl2">Quando si accede a un sito Web con un indirizzo quale https://example.com, provare ad aggiungere 'www' all'indirizzo, in modo da ottenere https://www.example.com.</li> <li id="errorExpl3">Se si sceglie di ignorare l'errore e continuare, non immettere informazioni personali nel sito Web.</li> </p> <p id="moreInfoSeeHelpPF">Per ulteriori informazioni, vedere l'argomento relativo agli errori di certificato nella Guida di Internet Explorer.</p> </div> </td> </tr> </table> </body> </html> I think it's ok the name overridelink but not work. My code of autoit: $Formx = GUICreate("UNOComm - "&$username, 500, 200, -1,-1,BitOr($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX,$WS_EX_LAYERED));creo IEembedded gui $oIE = _IECreateEmbedded();assegno a $oie la creazione dell'oggetto embedded $IEGUI = GUICtrlCreateObj ($oIE, 0, 0, 499, 199);creo l'oggetto grafico GUICtrlSetResizing(-1, $GUI_DOCKBORDERS);possibilita' di ridimensionare GUISetState();setto lo stato visibile AutoItSetOption("WinTitleMatchMode", 4);setto le opzioni $handle = WinGetHandle("UNOComm - "&$username,"");setto il titolo della finestra _IENavigate ($oIE,"www.google.it") _IELoadWait($oIE) sleep (5000) login() Func login();Funzione di login _IEErrorHandlerRegister ("MyErrFunc") _IENavigate ($oIE, $url,"");va alla pagina della login _IELoadWait($oIE,1000,180000);attende caricamento pagina max 5 sec. sleep(5000) $oSubmit = _IEGetObjByName ($oIE, "overridelink") _IEAction ($oSubmit, "click") sleep (10000) endfunc Here my debug of code:0071: _IENavigate ($oIE,'www.google.it') : ... $oIE% = 0072: _IELoadWait($oIE) : ... $oIE% = 0073: sleep (5000) 0075: login() 0078: _IEErrorHandlerRegister ('MyErrFunc') 0080: _IENavigate ($oIE, $url,'') : ... $oIE% = : ... $url% = 'https://meraswitch.uno.it/' 0081: _IELoadWait($oIE,1000,180000) : ... $oIE% = 0082: sleep(5000) 0084: $oSubmit = _IEGetObjByName ($oIE, 'overridelink') : ... $oSubmit% = : ... $oIE% = 0085: _IEAction ($oSubmit, 'click') : ... $oSubmit% = It's possible the problem is beacuse i use IEmbedded ??? Thx in advance. A. Edited August 1, 2011 by ra95 Share this post Link to post Share on other sites