Current Articles | Categories | Search | Syndication

Comments
by Robert Martin on Friday, August 08, 2008
This is a fantastic little tutorial, Nick.

One thing to add:

Wait methods such as these are ESSENTIAL in object detection. More than just correcting timing issues, you can't do tests to check for whether or not an error dialogue comes up without using a Wait method of some sort.
by Stefane on Wednesday, August 20, 2008
It's very useful for me, but I need a similar parameter to find a windowsforms PropertyGrid.
by Alexey on Monday, September 01, 2008
Just like hello word ;)

Hi by any chance, can we do same, but wait until object will became accessible?
Here is my script:
function RunApp(ItemIndex, ProcessIndex)
{
var p1, p2, w1, w2;


p1 = TestedApps["Items"](ItemIndex)["Run"]();

p2 = Sys["Process"]("Mobile", ProcessIndex);

while (! p2["WaitWindow"]("*","Playback",-1,0) )
{};

while (1)
{
w1 = p2["EventPlaybackForm"];
if (w1["Exists"])
break;
}
OpenPlaybackFile(ItemIndex, ProcessIndex);

}
And i get error "Unable to find the object EventPlaybackForm"
Thanks
by Alex - AQA on Monday, September 01, 2008
Hi,

Stefane,
please send a message with a detailed description of your task at support@automatedqa.com - we will try to help you.

Alexey,
What do you mean by "accessible"? You can wait for an object to appear in the objects tree using a corresponding Wait* method (WaitWindow, WaitWinFormsObject, WaitVCLObject, etc.). You can wait for an object to become visible on screen like this:
obj["WaitProperty"]("VisibleOnScreen", true, 20000)
If you need something different, please send us a message with a description of your task at support@automatedqa.com.
Click here to post a comment

AQA Products

TestComplete Strengthen your software with automated testing. Free trial. AQtime Everything you need to make your application fast and lean. Free trial. AQdevTeam Help your team work smarter with a complete project view and graphical workflow. Free trial. Automated Build Studio Transform error prone, complicated build and release tedium into a simple, clean automated process. Free trial.
AutomatedQA Home