Modify

Opened 18 years ago

Closed 18 years ago

#560 closed Bug (Duplicate)

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:
Milestone: 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 (0)

Change History (1)

comment:1 by J-Paul Mesnage, 18 years ago

Resolution: Duplicate
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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