Modify

Opened 11 years ago

Closed 11 years ago

Last modified 9 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 Changed 11 years ago by BrewManNH

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 Changed 11 years ago by guinness

  • Version changed from 3.3.8.1 to 3.3.9.4

comment:3 Changed 11 years ago by guinness

  • Milestone set to 3.3.9.9
  • Owner set to guinness
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [8021] in version: 3.3.9.9

comment:4 Changed 9 years ago by philkryder

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

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain guinness.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.