Close forms
Posted: Thu Jul 09, 2009 9:08 am
Environment:Ranorex 2.1,Win7
Target:
before my project is running ,i must close all casual forms ,as some popup, some applications which is shown under special conditions.
Use Host.Local.Children , i can get all forms by compressing conditions ,like title must be "form:xxx"
But how can i identify these forms? I think below condition can determin the forms that should be closed.
1. Visible,Enabled,Valid=True
2. Width,Height<Screen width,Height
3. Must has Close button at upper right
4. Has controls
5. process name <> explorer.exe ,sidebar
How can i know it has Close(X) button????
Target:
before my project is running ,i must close all casual forms ,as some popup, some applications which is shown under special conditions.
Use Host.Local.Children , i can get all forms by compressing conditions ,like title must be "form:xxx"
But how can i identify these forms? I think below condition can determin the forms that should be closed.
1. Visible,Enabled,Valid=True
2. Width,Height<Screen width,Height
3. Must has Close button at upper right
4. Has controls
5. process name <> explorer.exe ,sidebar
How can i know it has Close(X) button????