Haiyangwhu
12 years agoContributor
WaitProperty always returns true when wait for a dialog not exists
Hi all,
I met an issue when using WaitProperty method:
1. Click on a button, a progress information dialog shows
2. Wait until the dialog disappears, then go on to other works
I use WaitProperty in #2 to wait its Exists property for 3 minues:
if (Aliases.dlg_ProgressInformation.WaitProperty("Exists", false, 180000))
{
Log.Message(Aliases.dlg_ProgressInformation.Exists);
...
}
else
{
...
}
The if conditon always returns true immediately, no matter the dialog exists or not. Now i have to use while loop instead.
Am i right to use WaitProperty this way to wait for a dialog not exists?
I met an issue when using WaitProperty method:
1. Click on a button, a progress information dialog shows
2. Wait until the dialog disappears, then go on to other works
I use WaitProperty in #2 to wait its Exists property for 3 minues:
if (Aliases.dlg_ProgressInformation.WaitProperty("Exists", false, 180000))
{
Log.Message(Aliases.dlg_ProgressInformation.Exists);
...
}
else
{
...
}
The if conditon always returns true immediately, no matter the dialog exists or not. Now i have to use while loop instead.
Am i right to use WaitProperty this way to wait for a dialog not exists?