Solved
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
9 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
- 12 years agokirk_bottomley
- 3 years agoptrindade
- 3 years agoMis3
Recent Discussions
- 6 hours agoMW_Didata
- 17 hours agod_gfleetwood92