IE9 Automation Problems
#1
Posted 18 March 2011 - 03:49 PM
I'll keep looking to see if I can find and fix the problem. If I find it, I'll share the fix.
Has anyone else had this issue? If you're doing IE automation and are considering IE9, I'd wait until this issue is resolved. (If you're reading this, though, it's likely already too late.)
#2
Posted 18 March 2011 - 04:05 PM
More to come...
#3
Posted 18 March 2011 - 04:45 PM
Dale
#4
Posted 18 March 2011 - 05:00 PM
Please provide reproducers. I have not worked with IE9 yet, but IE4 - IE8 updates have never broken such basic functionality.
Dale,
Thanks for the reply. The reason I had to download and install IE9 was because of issues my company was experiencing with the new browser. We had the same "it's always worked before" thoughts too. At the end of the day, we had to force IE9 to operate in IE8 standards mode to avoid lots of work (10 days before roll-out) to "fix" our compatibility issues. In our case, we were easily able to add the needed meta tag to the page header. With my automation tasks, I don't have control over the third party web sites to be able to add the tag.
The attached file will crash on IE9 with the error:
--> IE.au3 V2.4-0 Error from function _IETagNameGetCollection, $_IEStatus_InvalidObjectType
D:\Program Files\AutoIt3\Include\IE.au3 (1727) : ==> Variable must be of type "Object".:
For $img In $imgs
For $img In $imgs^ ERROR
Kevin
(Found a problem with the original ie9Test.au3 file. Uploaded new version that demonstrates problem.)
Attached Files
Edited by kevingy, 19 March 2011 - 12:12 AM.
#5
Posted 19 March 2011 - 06:51 PM
#6
Posted 20 March 2011 - 05:52 AM
#include <IE.au3> $oIE = _IECreate ("<a href='http://wdextras.womansday.com/contests_texas.html' class='bbc_url' title='External link' rel='norewrite nofollow external'>http://wdextras.womansday.com/contests_texas.html"</a>) ConsoleWrite(isObj($oIE.document) & " -- <" & ObjName($oIE.document) & ">" & @CRLF)
1 -- <>
set oIE = CreateObject("InternetExplorer.Application") oIE.visible = true oIE.navigate("<a href='http://wdextras.womansday.com/contests_texas.html' class='bbc_url' title='External link' rel='norewrite nofollow external'>http://wdextras.womansday.com/contests_texas.html"</a>) MsgBox(TypeName(oIE.document))
HTMLDocument
Dale
Edited by DaleHohm, 20 March 2011 - 05:52 AM.
#7
Posted 20 March 2011 - 09:52 AM
I was running Windows 7 64 bit with Office 2010 32 bit. As soon as I compiled the script for 32 bit everything worked fine again.
Maybe this solves your problem too?
Edited by water, 20 March 2011 - 09:53 AM.
UDFs:
Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts
WordEX (2012-12-29 - Version 1.3 released) - Download
ExcelEX (2013-05-11 - Alpha 4 released) - Download
#8
Posted 20 March 2011 - 01:36 PM
Dale
#9
Posted 20 March 2011 - 02:01 PM
UDFs:
Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts
WordEX (2012-12-29 - Version 1.3 released) - Download
ExcelEX (2013-05-11 - Alpha 4 released) - Download
#10
Posted 20 March 2011 - 11:24 PM
I have looked at this a bit and there is a problem (or more than one) and it appears to be on the AutoIt side. The issue I've uncovered so far relates to the ObjName function that is returning an empty string when looking at a document object.
I'm glad you've found something and are working on it. Thank you!
#11
Posted 28 March 2011 - 01:49 PM
I realize you likely have higher priorities than this, but have you made any progress?
Kevin
#12
Posted 31 March 2011 - 04:01 PM
#13
Posted 06 April 2011 - 11:34 AM
I came across the same issue. Solved it by putting IE9 in compatibility mode for IE8. Press F12 in the IE9 Browser and play with the two buttons on the top bar where it says "Browser Mode." Good luck. (:
I can't have all of my users do this manually every time the browser window opens. This is a good suggestion, but it won't work for me. Thanks anyway!
#14
Posted 06 April 2011 - 11:45 AM
I have looked at this a bit and there is a problem (or more than one) and it appears to be on the AutoIt side. The issue I've uncovered so far relates to the ObjName function that is returning an empty string when looking at a document object.
Have you reported this as a bug? If not, I can. If it's on the AutoIt side, unless one of the AutoIt devs is aware of this, it won't get fixed.
#15
Posted 06 April 2011 - 01:51 PM
#16
Posted 07 May 2011 - 09:25 AM

What the script does gets infomation from a froum makes it into an array list then downloads the list/files from a http to PC /dir.
Scrpit is for non-proffit and for a small community but not all of the community run IE8
the community runs a lot smoother with the help of the scrpit.
If you would like a copy of the script DaleHohm please pm me
Edited by Tardis, 07 May 2011 - 09:29 AM.
#17
Posted 07 May 2011 - 02:36 PM
Dale
#18
Posted 08 May 2011 - 11:12 PM
#19
Posted 31 May 2011 - 01:02 PM
#20
Posted 31 May 2011 - 01:48 PM
I have updated the ticket (in a reply) with new VBS test code that uses www.autoitscript.com instead of the arbitrary site there before and adds a quick and dirty method to insure document load is complete before checking TypeName.
thanks,
Dale
set oIE = CreateObject("InternetExplorer.Application") oIE.visible = true oIE.navigate("<a href='http://www.autoitscript.com' class='bbc_url' title='' rel='norewrite'>http://www.autoitscript.com"</a>) MsgBox("Click When Browser Document Load Complete") MsgBox(TypeName(oIE.document))
Edited by DaleHohm, 31 May 2011 - 02:09 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users





