Share this page

WaitUntil<T>(T,Func<T,Boolean>,Int32) Method
Waits until a certain condition is met in the specified boolean function or the timeout elapses. This method is useful for synchronizing your test with your application.
Remarks
This overload uses timeout specified in the totalTimeOutTime argument.

C# Syntax

    [Extension()]
    public static bool WaitUntil<T>(
       this T testObject,
       Func<T,bool> funcToRun,
       int totalTimeOutTime
    )
    where T: ITestObject

Parameters

testObject
  The test object that is passed to the funcToRun function.
funcToRun
  A function returning a boolean result. The function runs until the function result is true, or until the specified timeout elapses.
totalTimeOutTime
  Timeout (in milliseconds) to wait until funcToRun function becomes true.

Type Parameters

T
  A class implementing ITestObject

Return Value

Boolean value returned from the funcToRun function.

Tips to improve your search results... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: