An expectation for checking that an element's selection state matches the expected state.
public static Func<AvaloniaDriver, bool> ElementSelectionStateToBe(By locator, bool selected)
The locator to find the element.
Expected selection state.