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