QuantityMatchers<W extends Widget> extension

Extension on WidgetSelector<W> providing matchers to assert on the quantity of selected widgets.

These matchers enable assertions on whether a certain number of widgets exist.

on

Methods

doesNotExist() → void
Asserts that no widgets of type W exist.
existsAtLeastNTimes(int n) MultiWidgetMatcher<W>
Asserts that at least n widgets of type W exist.
existsAtLeastOnce() MultiWidgetMatcher<W>
Asserts that at least one widget of type W exists.
existsAtMostNTimes(int n) MultiWidgetMatcher<W>
Asserts that at most n widgets of type W exist.
existsAtMostOnce() WidgetMatcher<W>
Asserts that at most one widget of type W exists.
existsExactlyNTimes(int n) MultiWidgetMatcher<W>
Asserts that exactly n widgets of type W exist.
existsOnce() WidgetMatcher<W>
Asserts that exactly one widget of type W exists.