Modify

#2320 closed Bug (Fixed)

_IENavigate return values

Reported by: BrewManNH Owned by: guinness
Milestone: 3.3.9.9 Component: Standard UDFs
Version: 3.3.9.4 Severity: None
Keywords: Cc:

Description

It appears from looking at the _IENavigate function that the return values from it don't match with the description in the help file. The function is supposed to return a value of -1 if it was successful, and 0 if there was a problem.

This section returns -1 with @error set if any errors are encountered in the _IELoadWait function and are passed from _IENavigate as a success, but with the @error value set to the error.

If $f_wait Then
	_IELoadWait($o_object)
	Return SetError(@error, 0, -1)
EndIf

Attachments (0)

Change History (4)

comment:1 by BrewManNH, on Feb 25, 2013 at 6:47:55 PM

Upon further investigation of the _IE* functions I've found this bug to be present in the following _IE functions as well.

  • _IELinkClickByText
  • _IELinkClickByIndex
  • _IEImgClick
  • _IEFormImageClick
  • _IEFormSubmit
  • _IEBodyWriteHTML
  • _IEDocWriteHTML

All of these functions are supposed to return -1 on a success, yet all return -1 even if there's an error in the _IELoadWait call.

BTW, this bug continues in the 3.3.9.4 beta version of the _IE functions also.

comment:2 by guinness, on Feb 26, 2013 at 1:30:57 AM

Version: 3.3.8.13.3.9.4

comment:3 by guinness, on Jul 19, 2013 at 9:59:11 PM

Milestone: 3.3.9.9
Owner: set to guinness
Resolution: Fixed
Status: newclosed

Fixed by revision [8021] in version: 3.3.9.9

comment:4 by philkryder, on Oct 15, 2015 at 5:56:50 AM

this still seems to be a problem in more current versions for some of the functions.
see:
https://www.autoitscript.com/forum/topic/177987-error-using-ielinkclickbytext/?page=2

Modify Ticket

Action
as closed The owner will remain guinness.

Add Comment


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