TryForElementAsync(Func<Control?>) Method

Definition

Assembly HeadlessTestingFramework.dll

Tries to wait for an element, returns null on timeout.

public Task<Control?> TryForElementAsync(Func<Control?> findFunc)

Parameters

findFunc
Func<Control?>

Function to find the element.

Returns

Task<Control>
The element, or null if not found within timeout.