waitproperty meth to synchronize by text length
I was about to give up on this but thought maybe someone else has an idea. I would like to format the syntax of the WaitProperty method to wait for the Text property of a Window to be => a specified length within a specified time limit before the test continues in order to synch the performance of the AUT with QTP. Is there a way to do this with a single statement?
Ex. oWindow.WaitProperty "text","Length is => 9", 5000
I'm currently using a Do Loop method and checking the ROProperty but was hoping I could reduce these lines with one WaitProperty line if possible.
Re: waitproperty meth to synchronize by text length
You can create a custom check for this:
<font class="small">Code:</font><hr /><pre>
Dim ix: ix = 0
If Len(oWindow.GetROProperty("text")) >= 9 Then
Reporter.ReportEvent micPass, "Length", Len(Window.GetROProperty("text"))
Wait(1) : ix = ix + 1
Loop Until ix = 10 'Wait for 10 seconds