#1935 closed Bug (Works For Me)
_IEBodyReadText with IE9 failed
| Reported by: | J-Paul Mesnage | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.6.1 | Severity: | None |
| Keywords: | Cc: |
Description (last modified by )
with some .htm it returns a string of 1 length instead of the expected one.
IE8 is OK
#include <IE.au3> Local $oIE = _IECreate() _IENavigate($oIE, "file://" & @ScriptDir & "\testgoodfile.htm", 1) Local $fullText = _IEBodyReadText($oIE) _IEQuit($oIE) MsgBox(0, "Results", "AutoIt version =" & @AutoItVersion & @CRLF & "length of $fullText = " & StringLen($fullText))
Attachments (1)
Change History (10)
by , 15 years ago
| Attachment: | testgoodfile.htm added |
|---|
follow-up: 3 comment:1 by , 15 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 15 years ago
comment:3 by , 15 years ago
Replying to Jpm:
I suppose you get a length around 2500.
what can i do on my system in fact 2 Win7 32-bit sp1
both return 1
comment:4 by , 15 years ago
| Resolution: | → Works For Me |
|---|---|
| Status: | new → closed |
comment:6 by , 15 years ago
Finally the suggestion #1938 of using #RequireAdmin is a workaround.
The ticket should be reopen to work witout #RequireAdmin or tell me what I need to change in IE9 configuration
comment:8 by , 15 years ago
Again, suggest you test with VBS:
set oIE = CreateObject("InternetExplorer.Application")
oIE.visible=1
oIE.navigate2("file:///C:\temp.html")
Wscript.sleep 6000
MsgBox(oIE.document.body.innerText)
Dale
comment:9 by , 12 years ago
Finally I found how to have it working disabling the Protected Mode on Internet security zone.
Look a little strange that local file follow the same rule as the Internet ones but why not

I cannot reproduce the problem on Win 7 32-bit, AutoIt 3.3.6.1. The Sring length returned is as expected.
Can others reproduce?
Dale