Search the Community
Showing results for tags '_iebodyreadtext'.
-
Good morning, I need help, I find myself in trouble. I would like to read the contents of a web page and use the "_IEBodyReadText" function and this function without problems. In the presence of web pages that contain FRAMES at the same URL I can not read the content of web pages generated by frames. Can you help me ? (translated with Google)
-
Sometimes my scripts crash with a console error such as this one: "C:\Program Files (x86)\AutoIt3\Include\IE.au3" (1599) : ==> The requested action with this object has failed.: Return SetError($_IESTATUS_Success, 0, $oObject.document.body.innerText) Return SetError($_IESTATUS_Success, 0, $oObject.document.body^ ERROR ->11:13:08 AutoIt3.exe ended.rc:1 However, before crashing I get a number these warnings that I suspect are related: --> IE.au3 T3.0-2 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) The "object has failed" errors are coming from included file "IE.au3" which is version 3.3.14.2 according to the top part of its header: ; #INDEX# ======================================================================================================================= ; Title .........: Internet Explorer Automation UDF Library for AutoIt3 ; AutoIt Version : 3.3.14.2 An example of where a function crashes out is as below; the final Return statement is followed by "==> The requested action with this object has failed.:" ; #FUNCTION# ==================================================================================================================== ; Author ........: Dale Hohm ; =============================================================================================================================== Func _IEBodyReadText(ByRef $oObject) If Not IsObj($oObject) Then __IEConsoleWriteError("Error", "_IEBodyReadText", "$_IESTATUS_InvalidDataType") Return SetError($_IESTATUS_InvalidDataType, 1, 0) EndIf If Not __IEIsObjType($oObject, "browserdom") Then __IEConsoleWriteError("Error", "_IEBodyReadText", "$_IESTATUS_InvalidObjectType", "Expected document element") Return SetError($_IESTATUS_InvalidObjectType, 1, 0) EndIf ; Return SetError($_IESTATUS_Success, 0, $oObject.document.body.innerText) EndFunc ;==>_IEBodyReadText Searching AutoIT help documentation, I read: "_IEErrorHandlerRegister() has been removed. It's not required due to COM errors no longer being fatal. " Any advice please on how I may go about making the failing objects not fatal and how I can overcome the __IEIsObjType warnings if _IEErrorHandlerRegister() has been removed? Thanks.
- 1 reply
-
- _ieerrorhandlerregister()
- __ieisobjtype
-
(and 1 more)
Tagged with: