Modify

#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@… on Sep 6, 2008 at 2:55:57 PM.
Test case: simple app and two AutoIT scripts, showing reported bud
SomeName.zip (193.2 KB ) - added by blackgilmor@… on Sep 6, 2008 at 2:57:09 PM.
Simple app with two forms to show bug
WrongTestScript.au3 (128 bytes ) - added by blackgilmor@… on Sep 6, 2008 at 2:58:06 PM.
AutoIT Script with bug
WellTestScript.au3 (128 bytes ) - added by blackgilmor@… on Sep 6, 2008 at 2:58:42 PM.
Proper AutoIT script

Download all attachments as: .zip

Change History (5)

by blackgilmor@…, on Sep 6, 2008 at 2:55:57 PM

Attachment: AutoIt test.zip added

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

by blackgilmor@…, on Sep 6, 2008 at 2:57:09 PM

Attachment: SomeName.zip added

Simple app with two forms to show bug

by blackgilmor@…, on Sep 6, 2008 at 2:58:06 PM

Attachment: WrongTestScript.au3 added

AutoIT Script with bug

by blackgilmor@…, on Sep 6, 2008 at 2:58:42 PM

Attachment: WellTestScript.au3 added

Proper AutoIT script

comment:1 by Valik, on Sep 9, 2008 at 6:51:01 PM

Milestone: 3.2.13.8
Owner: set to Valik
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.13.8

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


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