Forum Discussion
p_bremm11
Contributor
Curiosity, I use the following idea, when I use a function that expects certain object:
Project.Variables.DelayDefault : = Options.Run.Timeout;
Options.Run.Timeout : = 0;
//user function to wait for the object
Options.Run.Timeout : = Project.variables.DelayDefault;
AlexKaras
10 years agoChampion Level 3
Hi,
You may also consider the .WaitProperty() method (http://support.smartbear.com/viewarticle/55099/) to eliminate the custom loop. Something like this (untested pseudo-code):
If (Not button.WaitProperty("Enabled", True, Options.Run.Timeout)) Then
Call Log.Warning(aqString.Format("Button did not become enabled within %i seconds", Options.Run.Timeout / 1000))
End If
Call button.click
...
Related Content
- 3 months ago
- 12 years ago
- 3 years ago
- 4 years ago
Recent Discussions
- 7 hours ago