Class AlertAction

java.lang.Object
net.serenitybdd.screenplay.actions.AlertAction
All Implemented Interfaces:
net.serenitybdd.core.SkipNested, net.serenitybdd.screenplay.Performable

public class AlertAction extends Object implements net.serenitybdd.screenplay.Performable
Switch to an alert window
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.serenitybdd.screenplay.Performable
    Accept the HTML alert message
    net.serenitybdd.screenplay.Performable
    Dismiss the HTML alert message
    net.serenitybdd.screenplay.Question<String>
    Retrieve the text of the current alert window
    <T extends net.serenitybdd.screenplay.Actor>
    void
    performAs(T actor)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      performAs in interface net.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

      public net.serenitybdd.screenplay.Question<String> getText()
      Retrieve the text of the current alert window