Forum Discussion
p_bremm11
10 years agoContributor
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;
- AlexKaras10 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
- 13 years ago
- 4 months ago
- 3 years ago
- 4 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 7 days ago