Class AlertAction
java.lang.Object
net.serenitybdd.screenplay.actions.AlertAction
- All Implemented Interfaces:
net.serenitybdd.core.SkipNested,net.serenitybdd.screenplay.Performable
Switch to an alert window
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.serenitybdd.screenplay.PerformableAccept the HTML alert messagenet.serenitybdd.screenplay.PerformableDismiss the HTML alert messagenet.serenitybdd.screenplay.Question<String> getText()Retrieve the text of the current alert window<T extends net.serenitybdd.screenplay.Actor>
voidperformAs(T actor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.serenitybdd.screenplay.Performable
then
-
Constructor Details
-
AlertAction
public AlertAction()
-
-
Method Details
-
performAs
public <T extends net.serenitybdd.screenplay.Actor> void performAs(T actor) - Specified by:
performAsin interfacenet.serenitybdd.screenplay.Performable
-
andDismiss
public net.serenitybdd.screenplay.Performable andDismiss()Dismiss the HTML alert message -
andAccept
public net.serenitybdd.screenplay.Performable andAccept()Accept the HTML alert message -
getText
Retrieve the text of the current alert window
-