Ah, I was looking for .body in the Intellisense list and it's not there. I wasn't trying your code since I couldn't see the property, but the property is indeed accessable anyway.
Thanks.
Gary
>I just tried it (using IE8 and Vista)
>
>
>loIE = CREATEOBJECT("InternetExplorer.Application")
>#DEFINE READYSTATE_COMPLETE 4
>#DEFINE MAX_TIME 30
>#DEFINE OLECMDID_PASTE 13
>#DEFINE OLECMDEXECOPT_DODEFAULT 0
>
>local lcInnerHTML
>local lnStarted
>local lnWaiting
>local lcRetVal
>
>lnStarted = SECONDS()
>
>loIE.navigate("www.yahoo.com")
>
>* Wait till page totally loaded
>DO WHILE loIE.Readystate <> READYSTATE_COMPLETE
> lnWaiting = SECONDS() - lnStarted
>ENDDO
>
>=MESSAGEBOX(loIE.Document.Body.InnerHtml)
>
>and it worked for me.
>
>>Thanks, but oIE.Document doesn't have a body object or innerhtml property. I'm using IE 8.
>>
>>GAry
>>
>>
>>>>Hi,
>>>>I have a page up in a browser and a an object ref and I want to push a button on the page. I can do what I want to do if I can read the HTML source, but I dont see any way to get to it. No property of teh IE object seems to get the underlying HTML. Can this be done?
>>>>With the HTML I can parse the URL I need to navigate to.
>>>>
>>>>Thanks,
>>>>Gary
>>>
>>>Try
>>>
>>>loIE.Document.Body.innerHTML
>>>
>>>See
Re: Change NCRs back to characters Thread #
1350866 Message #
1350883>>>
>>>and
>>>
>>>
Re: Web Server Automation Thread #
1330352 Message #
1330473>>>
>>>or
>>>
>>>
Re: Class def. WinHTTP.WinHTTPRequest.5 is not found on XP Thread #
1323708 Message #
1324095>>>
>>>and even
>>>
>>>
Re: SYS(1500) Help Thread #
1280185 Message #
1280429