ForElementAsync(Func<Control?>, String?) Method

Definition

Assembly HeadlessTestingFramework.dll

Waits for an element to exist (be found).

public Task<Control> ForElementAsync(Func<Control?> findFunc, string? message = null)

Parameters

findFunc
Func<Control?>

Function to find the element.

message
String

Optional message for timeout exception.

Returns

Task<Control>
The found element.