IsPresentNTimes

public class IsPresentNTimes

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.

Constructors

IsPresentNTimes

public IsPresentNTimes(int nTimes)

Methods

timesIn

public Matcher<Path> timesIn(InBrowser browser)

timesIn

public Matcher<Path> timesIn(Document doc)

timesOrLessIn

public Matcher<Path> timesOrLessIn(InBrowser browser)

timesOrLessIn

public Matcher<Path> timesOrLessIn(Document doc)

timesOrMoreIn

public Matcher<Path> timesOrMoreIn(InBrowser browser)

timesOrMoreIn

public Matcher<Path> timesOrMoreIn(Document doc)