Modify

Opened 16 years ago

Closed 16 years ago

#562 closed Bug (Fixed)

WinWait and similar functions fails if in TITLE parameter there is form caption and after that CLASS name description (in that order)

Reported by: blackgilmor@… Owned by: Valik
Milestone: 3.2.13.8 Component: AutoIt
Version: 3.2.12.0 Severity: None
Keywords: WinActice Title Class name check Cc: blackgilmor@…

Description

WinWain function, and other similar, fails when in title parameter is typed "[TITLE:SomeName;CLASS:TfSomeName]" (in that order).
Class name parameter isn't checked so if there is any other opened form with caption "SomeName", or runs any application called "SomeName", function WinWait will finish with positive result, even if class name of that form/app is different than TfSomeName.
If WinWait parameters will be typed in different order:
"[CLASS:TfSomeName;TITLE:SomeName]"
there is no problem.

Test case:
I'm submiting very simple app with two forms: MainForm and SomeName form. SomeName form is being created, just after mouse click on button on MainForm. My app is named SomeName, so when you will be run my WrongTestScript.au3 you will get message box before mouse click on button on main form.
When you will be executing WellTestScript.au3, this message will appear only after mouse click on that button, which is correct.

Attachments (4)

AutoIt test.zip (193.6 KB) - added by blackgilmor@… 16 years ago.
Test case: simple app and two AutoIT scripts, showing reported bud
SomeName.zip (193.2 KB) - added by blackgilmor@… 16 years ago.
Simple app with two forms to show bug
WrongTestScript.au3 (128 bytes) - added by blackgilmor@… 16 years ago.
AutoIT Script with bug
WellTestScript.au3 (128 bytes) - added by blackgilmor@… 16 years ago.
Proper AutoIT script

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by blackgilmor@…

Test case: simple app and two AutoIT scripts, showing reported bud

Changed 16 years ago by blackgilmor@…

Simple app with two forms to show bug

Changed 16 years ago by blackgilmor@…

AutoIT Script with bug

Changed 16 years ago by blackgilmor@…

Proper AutoIT script

comment:1 Changed 16 years ago by Valik

  • Milestone set to 3.2.13.8
  • Owner set to Valik
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.2.13.8

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 Valik.
Author


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

 
Note: See TracTickets for help on using tickets.