Jump to content

IE.au3 crashes on SSL certificate error in IE 7


Recommended Posts

When running ie au3 in Windows IE7 getting a certificate error:navigation blocked page. Script ran fine on IE 6. Can be replicated on the following public website: https://savannah.gnu.org/ .

Example script:

#include <IE.au3>

$oIE = _IECreate ("https://savannah.gnu.org/", 0, 1, 0)

$sText = _IEBodyReadText ($oIE)

MsgBox(0, "Body Text", $sText)

Debug output:

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\newuser\My Documents\testcmshtml.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams

+>00:15:43 Starting AutoIt3Wrapper v.2.0.1.24 Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86)

>Running AU3Check (1.54.19.0) from:C:\Program Files\AutoIt3

+>00:15:43 AU3Check ended.rc:0

>Running:(3.3.6.0):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\newuser\My Documents\testcmshtml.au3"

C:\Program Files\AutoIt3\Include\IE.au3 (1964) : ==> The requested action with this object has failed.:

Return SetError($_IEStatus_Success, 0, $o_object.document.body.innerText)

Return SetError($_IEStatus_Success, 0, $o_object.document^ ERROR

->00:15:44 AutoIT3.exe ended.rc:1

>Exit code: 1 Time: 2.194

Any ideas?

Thanks for any help you can give.

Link to comment
Share on other sites

I have tried adding the site to the trusted sites and installing the cert is not an option. Any other ideas as to how to get past this Windows IE7 "feature"?

Thanks.

Edited by maddog
Link to comment
Share on other sites

Then you wait for the certification error to appear and then click the link "continue to the page" using IE functions.

This is the html code that you need to consider. Keep in mind that the error might not always appear if you dont close the browser so you need to check if the cert. error appears or not.

<A id=overridelink href="https://savannah.gnu.org/" name=overridelink>Continue to this website (not recommended).</A>
Edited by Juvigy
Link to comment
Share on other sites

You can allow the script to continue and trap the error yourself. Please see _IEErrorHandlerRegister()

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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