Forum Discussion
e.g., it stopped the test, instead of breaking out of the while loop, and continue the test?
Does the object Aliases.IC.MDIForm1.MdiClient.ChartForm, actually exists?
Check the project settings for "On error:"
- BD_Geoactive1 month agoContributor
Does the object Aliases.IC.MDIForm1.MdiClient.ChartForm, actually exists?
Yes it does. There are multiple objects ('chartForm') that are opened, Using While Loop to close every single of them 1 by 1 until the object in question returns (VisibleOnScreen) false.
I will check on the project settings.
- rraghvani1 month ago
Champion Level 3
So it's a multiple document interface having a number of windows, and you are closing each window if they are opened i.e. Visible Equals True?
I'm assuming you are using a wild card for the name mapping of Aliases.IC.MDIForm1.MdiClient.ChartForm?
When the last window is closed, what is the value of Aliases.IC.MDIForm1.MdiClient.ChartForm.Exists?
- BD_Geoactive1 month agoContributor
well thats the mysterious bit. obviously, i couldn't access the ChartForm when they all are closed. dont know how it does it, but using exists property does work when compared to using visible. or visibelOnScreen.