Modify

Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#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, 13 years ago

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, 13 years ago

Version: 3.3.8.13.3.9.4

comment:3 by guinness, 13 years ago

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, 10 years ago

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.