Class IsPresentNTimes
- java.lang.Object
-
- com.github.loyada.jdollarx.custommatchers.IsPresentNTimes
-
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.
-
-
Constructor Summary
Constructors Constructor Description IsPresentNTimes(int nTimes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hamcrest.Matcher<Path>
timesIn(InBrowser browser)
org.hamcrest.Matcher<Path>
timesIn(Document doc)
org.hamcrest.Matcher<Path>
timesOrLessIn(InBrowser browser)
org.hamcrest.Matcher<Path>
timesOrLessIn(Document doc)
org.hamcrest.Matcher<Path>
timesOrMoreIn(InBrowser browser)
org.hamcrest.Matcher<Path>
timesOrMoreIn(Document doc)
-
-
-
Method Detail
-
timesIn
public org.hamcrest.Matcher<Path> timesIn(Document doc) throws IOException, SAXException, ParserConfigurationException
-
timesOrMoreIn
public org.hamcrest.Matcher<Path> timesOrMoreIn(Document doc) throws IOException, SAXException, ParserConfigurationException
-
timesOrLessIn
public org.hamcrest.Matcher<Path> timesOrLessIn(Document doc) throws IOException, SAXException, ParserConfigurationException
-
-