Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
1. what is the type for the variable to define, for the Stopwatch? String/integer etc
I have the variable type set to "object"
2. What is te specific command suitable to use, to wait for an object to become visible? (I'll use that in stead of the delay, just like you mentioned). I've heard about some Wait statements, but I can type anything in the Code Snippet line (without having code autocomplete -> is that an option I can put on?), I'd have to know more concrete syntax info for the right Wait statement.
The Wait commands are not stand alone functions but are methods associated with Window objects. So, for example, if I have a standard DeskTop application that, after I click a button, I want to wait for a form to display, I'd call something like
Sys.Process("MyApp").WaitVCLObject("MyForm", 10000)
So, what you'll do is insert a "Call Object Method" operation, specify the Onscreen object that is the parent of the object you're waiting for, and then call the "WaitNNN" method that is appropriate for it. If you're using NameMapping and aliases, that will most like be WaitAliasChild (documented at http://smartbear.com/support/viewarticle/12497/).
Hope this helps!
Related Content
- 12 years ago
- 11 years ago
- 12 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago