I have found this to work when the body object doesn't appear in the dom of IE9 and you are trying to get to innertext or innerhtml.
lctext=oie.Document.body IF ISNULL(lctext) lctext=OIE.Application.Document.firstChild ENDIF John Harvey -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Graham Brown Sent: Wednesday, June 15, 2011 2:33 PM To: [email protected] Subject: Automate Internet Explorer 9 with fox 8 Hi all I've got some simple code to automate IE, navigate to a URL and download the page as text. This code works fine in IE8 oIE=createobject("InternetExplorer.Application") oIE.Navigate("http://www.microsoft.com") do while oIE.ReadyState<>4 Inkey(1) Enddo ? oIE.Document.Body.InnerText The compiled application fails with "Body is not an object" on Windows 7 and IE9. If I run this line by in the command window Intellisense tells me there is no body although I can just ignore Intellisense and ask for the body. I can then see its InnerText. Intellisense also fails in IE8/WinXP but the compiled application works fine. Has any come across this one please because it is driving me nuts. Cheers Graham --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

