NumberOfElementsToBeLessThan(By, Int32) Method

Definition

Assembly HeadlessTestingFramework.dll

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)

Parameters

locator
By

The locator to find elements.

count
Int32

The maximum count.

Returns

Func<AvaloniaDriver, IReadOnlyList<AvaloniaElement>>
The elements when count is at most the expected.