public class IsPresentNTimes
extends Object
Internal implementation - not to be instantiated directly.
This matcher is optimized for the success use-case. In that case it match for a single element
with exact number of elements wanted.
In case of failure, it will make another call to get the actual number of elements on
the page, in order to provide a detailed error message.
So the trade off is: In case of success it's faster, In case of failure it's slower. It makes sense since most
of the time we expect success.