An expectation for checking that the number of elements is at most the expected count.
public static Func<AvaloniaDriver, IReadOnlyList<AvaloniaElement>> NumberOfElementsToBeLessThan(By locator, int count)
The locator to find elements.
The maximum count.