ElementSelectionStateToBe(By, Boolean) Method

Definition

Assembly HeadlessTestingFramework.dll

An expectation for checking that an element's selection state matches the expected state.

public static Func<AvaloniaDriver, bool> ElementSelectionStateToBe(By locator, bool selected)

Parameters

locator
By

The locator to find the element.

selected
Boolean

Expected selection state.

Returns

Func<AvaloniaDriver, Boolean>
True when the element's selection matches.