I have a test case in which a dialog gets launched after clicking a button.
This dialog may not be same everytime. ( There is set of 5 dialogs from which a dialog is picked.)
I want to find out which dialog is launched after the click. So is there a way to know which object is launched ? to understand dialog name.
I used below code.
This is time consuming when last dialog is launched as it will check for all dialog.
Is there any method to know which object is launched after clicking the botton without checking every object.
Solved! Go to Solution.
> is there a way to know which object is launched ?
No way, unless your tested application provides some info about this.
You can control the amount of time it checks for each dialog by using judicious placements of "WaitChild" or "WaitAliasChild" to wait for the dialog. Those methods have a timeout setting that you can set to a max level. That way, rather than waiting for the global project level timeout, you can customize it based upon expected timeout for each dialog.