public class ElementAssert extends org.assertj.core.api.AbstractAssert<ElementAssert,Element>
Element.| Constructor and Description |
|---|
ElementAssert(Element actual)
Initiates an object of type ElementAssert.
|
| Modifier and Type | Method and Description |
|---|---|
ElementAssert |
existInDom()
check if the element exist in the dom.
|
ElementAssert |
hasClass(java.lang.String classToFind)
check if the element has the class.
|
ElementAssert |
hasId(java.lang.String id)
check if the element has the given id.
|
ElementAssert |
hasNotClass(java.lang.String classToFind)
check if the element has the not the class.
|
ElementAssert |
hasNotText(java.lang.String textToFind)
check if the element does not contain the text.
|
ElementAssert |
hasText(java.lang.String textToFind)
check if the element contains the text.
|
ElementAssert |
hasTextMatching(java.lang.String regexToBeMatched)
check if the element matches the given regex.
|
ElementAssert |
isDisplayed()
check if the element is displayed.
|
ElementAssert |
isEnabled()
check if the element is enabled.
|
ElementAssert |
isNotDisplayed()
check if the element is not displayed.
|
ElementAssert |
isNotEnabled()
check if the element is not enabled.
|
ElementAssert |
isNotSelected()
check if the element is not selected.
|
ElementAssert |
isSelected()
check if the element is selected.
|
ElementAssert |
notExistInDom()
check if the element exist not in the dom.
|
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, setCustomRepresentation, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorpublic ElementAssert(Element actual)
actual - the current object.public ElementAssert isEnabled()
public ElementAssert isNotEnabled()
public ElementAssert isDisplayed()
public ElementAssert isNotDisplayed()
public ElementAssert isSelected()
public ElementAssert isNotSelected()
public ElementAssert hasText(java.lang.String textToFind)
textToFind - the text which should be found.public ElementAssert hasTextMatching(java.lang.String regexToBeMatched)
regexToBeMatched - the text which should be found as regeexp.public ElementAssert hasNotText(java.lang.String textToFind)
textToFind - the text which should be found.public ElementAssert hasId(java.lang.String id)
id - to checkpublic ElementAssert hasNotClass(java.lang.String classToFind)
classToFind - the css-class which should not be found.public ElementAssert hasClass(java.lang.String classToFind)
classToFind - the css-class which should be found.public ElementAssert existInDom()
public ElementAssert notExistInDom()
Copyright © 2017 PPI AG. All rights reserved.