| Package | Description |
|---|---|
| com.github.loyada.jdollarx.custommatchers |
Custom Hamcrest matchers for assertions in tests - supports multiple instances of browsers, as
well as assertions on a W3C Document
|
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<InBrowser> |
CustomMatchers.hasElement(Path el)
Successful if the browser has an element that corresponds to the given path.
|
static org.hamcrest.Matcher<InBrowser> |
CustomMatchers.hasNoElement(Path el)
Successful if given browser has no elements that correspond to the given path.
|
org.hamcrest.Matcher<InBrowser> |
HasElementNTimes.times()
matches the exact number given
|
org.hamcrest.Matcher<InBrowser> |
HasElementNTimes.timesOrLess()
matches the number given, or less
|
org.hamcrest.Matcher<InBrowser> |
HasElementNTimes.timesOrMore()
matches the number given, or more
|
| Modifier and Type | Method and Description |
|---|---|
org.hamcrest.Matcher<Path> |
HasText.in(InBrowser browser) |
org.hamcrest.Matcher<Path> |
IsPresent.in(InBrowser browser) |
static org.hamcrest.Matcher<Path> |
CustomMatchers.isAbsentFrom(InBrowser browser)
Successful if given browser has no elements that correspond to the given path.
|
static org.hamcrest.Matcher<Path> |
CustomMatchers.isDisplayedIn(InBrowser browser)
Successful if given element is present and displayed in the browser.
|
static org.hamcrest.Matcher<Path> |
CustomMatchers.isEnabledIn(InBrowser browser)
Successful if given element is present and enabled in the browser.
|
static org.hamcrest.Matcher<Path> |
CustomMatchers.isPresentIn(InBrowser browser)
Successful if given element is present in the browser.
|
static org.hamcrest.Matcher<Path> |
CustomMatchers.isSelectedIn(InBrowser browser)
Successful if given element is present and selected in the browser.
|
org.hamcrest.Matcher<Path> |
IsPresentNTimes.timesIn(InBrowser browser) |
org.hamcrest.Matcher<Path> |
IsPresentNTimes.timesOrLessIn(InBrowser browser) |
org.hamcrest.Matcher<Path> |
IsPresentNTimes.timesOrMoreIn(InBrowser browser) |
| Constructor and Description |
|---|
NTimesMatcher(int nTimes,
RelationOperator relationOperator,
InBrowser browser) |
Copyright © 2018. All rights reserved.