CustomElementCondition(Func<AvaloniaDriver, AvaloniaElement?>) Method

Definition

Assembly HeadlessTestingFramework.dll

Creates a custom condition that returns an element.

public static Func<AvaloniaDriver, AvaloniaElement> CustomElementCondition(Func<AvaloniaDriver, AvaloniaElement?> condition)

Parameters

condition
Func<AvaloniaDriver, AvaloniaElement>

The condition function.

Returns

Func<AvaloniaDriver, AvaloniaElement>
The element when found.