Modify

#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 J-Paul Mesnage)

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)

testgoodfile.htm (3.6 KB ) - added by J-Paul Mesnage on May 28, 2011 at 7:55:45 AM.

Download all attachments as: .zip

Change History (10)

by J-Paul Mesnage, on May 28, 2011 at 7:55:45 AM

Attachment: testgoodfile.htm added

comment:1 by J-Paul Mesnage, on May 28, 2011 at 7:58:26 AM

Description: modified (diff)

comment:2 by DaleHohm, on May 31, 2011 at 3:29:01 PM

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

in reply to:  1 comment:3 by J-Paul Mesnage, on Jun 1, 2011 at 10:20:54 PM

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 Jon, on Jun 2, 2011 at 10:23:23 AM

Resolution: Works For Me
Status: newclosed

comment:5 by J-Paul Mesnage, on Jun 5, 2011 at 7:59:33 AM

any clue to understand what is going under my 2 systems ...

comment:6 by J-Paul Mesnage, on Jun 5, 2011 at 8:30:21 AM

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:7 by J-Paul Mesnage, on Jun 16, 2011 at 8:12:24 AM

At least Jon, reproduce the problem
IE8 seems to failed too.

Last edited on Jun 16, 2011 at 8:52:30 AM by J-Paul Mesnage (previous) (diff)

comment:8 by DaleHohm, on Jul 11, 2011 at 9:18:26 PM

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 J-Paul Mesnage, on Mar 31, 2014 at 8:36:42 AM

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

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.