public class FluentWebElementAssert extends org.assertj.core.api.AbstractAssert<FluentWebElementAssert,FluentWebElement>
| Constructor and Description |
|---|
FluentWebElementAssert(FluentWebElement actual)
Creates a new element assertions object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
failWithMessage(String errorMessage)
Secure failWithMessage by escaping String.format tokens when called without arguments.
|
FluentWebElementAssert |
hasClass(String classToFind)
check if the element has the class
|
FluentWebElementAssert |
hasId(String idToFind)
check if the element has the given id
|
FluentWebElementAssert |
hasNotText(String textToFind)
check if the element does not contain the text
|
FluentWebElementAssert |
hasText(String textToFind)
check if the element contains the text
|
FluentWebElementAssert |
hasTextMatching(String regexToBeMatched)
check if the element matches the given regex
|
FluentWebElementAssert |
isDisplayed()
check if the element is displayed
|
FluentWebElementAssert |
isEnabled()
check if the element is enabled
|
FluentWebElementAssert |
isNotDisplayed()
check if the element is not displayed
|
FluentWebElementAssert |
isNotEnabled()
check if the element is not enabled
|
FluentWebElementAssert |
isNotSelected()
check if the element is not selected
|
FluentWebElementAssert |
isSelected()
check if the element is selected
|
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 FluentWebElementAssert(FluentWebElement actual)
actual - actual elementpublic FluentWebElementAssert isEnabled()
this assertion object.public FluentWebElementAssert isNotEnabled()
this assertion object.public FluentWebElementAssert isDisplayed()
this assertion object.public FluentWebElementAssert isNotDisplayed()
this assertion object.public FluentWebElementAssert isSelected()
this assertion object.public FluentWebElementAssert isNotSelected()
this assertion object.protected void failWithMessage(String errorMessage)
errorMessage - error messageAbstractAssert.failWithMessage(String, Object...)public FluentWebElementAssert hasText(String textToFind)
textToFind - text to findthis assertion object.public FluentWebElementAssert hasTextMatching(String regexToBeMatched)
regexToBeMatched - regex to be matchedthis assertion object.public FluentWebElementAssert hasNotText(String textToFind)
textToFind - text to findthis assertion object.public FluentWebElementAssert hasId(String idToFind)
idToFind - id to findthis assertion object.public FluentWebElementAssert hasClass(String classToFind)
classToFind - class to findthis assertion object.Copyright © 2016 FluentLenium. All Rights Reserved.