Another WaitWindow/Exists thread
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2010
08:05 AM
07-21-2010
08:05 AM
Another WaitWindow/Exists thread
As far as I know from searching around here, the following should work:
var x;
x = Aliases["BLAH32"]["dlgBlah"]["WaitWindow"]("Static", "blah blah blah.", 2, 1000);
if (!x["Exists"])
{
//Do whatever
}
The line with WaitWindow always gives a "the object does not exist" error. It also seems to wait longer than 1000 before it fails.
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2010
09:20 AM
07-21-2010
09:20 AM
WaitWindow doesn't raise an error if it fails to find the desired object. That implies that the error is coming from this part:
Aliases["BLAH32"]["dlgBlah"]
That's the object that doesn't exist. TC is taking some time to find it (the "Auto-wait timeout" defined in your project properties), failing to find it, then because you are trying to call a method of the missing object, you get the error.
Aliases["BLAH32"]["dlgBlah"]
That's the object that doesn't exist. TC is taking some time to find it (the "Auto-wait timeout" defined in your project properties), failing to find it, then because you are trying to call a method of the missing object, you get the error.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2010
08:09 PM
07-21-2010
08:09 PM
Hi,
Try using WaitAliaChild to obtain 'BLAH32' and 'dlgBlah'. If this doesn't help, check by what properties they're mapped in Name Mapping. Perhaps, you use some unreliable properties such as Index, and their actual values don't match the stored ones.
Try using WaitAliaChild to obtain 'BLAH32' and 'dlgBlah'. If this doesn't help, check by what properties they're mapped in Name Mapping. Perhaps, you use some unreliable properties such as Index, and their actual values don't match the stored ones.
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2010
01:14 AM
07-22-2010
01:14 AM
Thanks for the replies. WaitAliasChild didn't work for me. Probably because I was messing something up. 🙂
Here's what did work for me:
var x;
x = Aliases["Blah32"]["WaitWindow"]("#32770", "Blah", 1, 1000);
if (!x["Exists"])
{
//Do something
}
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2010
02:23 AM
07-22-2010
02:23 AM
Hi,
It looks like the recognition parameters in Name Mapping are incorrect. Try checking the 'dlgBlah' dialog's properties in Name Mapping and see what values they have.
It looks like the recognition parameters in Name Mapping are incorrect. Try checking the 'dlgBlah' dialog's properties in Name Mapping and see what values they have.
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
