public class AlertAssert extends org.assertj.core.api.AbstractAssert<AlertAssert,org.openqa.selenium.Alert>
Alert.| Constructor and Description |
|---|
AlertAssert(org.openqa.selenium.Alert actual)
Initiates an object of type AlertAssert.
|
| Modifier and Type | Method and Description |
|---|---|
AlertAssert |
hasText(java.lang.String textToFind)
Check that the alert box contains the given text.
|
AlertAssert |
isPresent()
Check that an alert box is present.
|
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 AlertAssert(org.openqa.selenium.Alert actual)
actual - the current object.public AlertAssert hasText(java.lang.String textToFind)
textToFind - the text which should be find.public AlertAssert isPresent()
Copyright © 2017 PPI AG. All rights reserved.