WaitFor

Top  Previous  Next

This method waits for a Screen containing the specified string. In the first case shown below, it returns True if the wait was successful and False if the Timeout period has expired. In the second case it receives an array of

strings as parameter, and returns an integer indicating the number of the string (into the array of strings) that was found.

 

VB.NET

 

[Boolean =] Screen.WaitFor(Value As String, [TimeOut] As Integer, [ResetWait] As Boolean)

 

[Integer =] Screen.WaitFor(Values As String, [TimeOut] As Integer, [ResetWait] As Boolean)

 

C#

 

[bool =] Screen.WaitFor(string Value, int [TimeOut], bool [ResetWait]);

 

[int =] Screen.WaitFor(string[] Values, int [TimeOut], bool [ResetWait]);

 

 

Parameters

 

Parameters

Description

Value

The string of characters expected to be found.

Values

The array of strings where one of them is expected to be found. In Visual Basic this is a string with several values separated by ";"

TimeOut

Optional parameter measured in milliseconds.

ResetWait

While this optional parameter is false, continue lopping until the expected string is found.