Class AlertText

java.lang.Object
net.serenitybdd.screenplay.actions.AlertText
All Implemented Interfaces:
net.serenitybdd.screenplay.Question<String>

public class AlertText extends Object implements net.serenitybdd.screenplay.Question<String>
Retrieve the text of the current alert window
  • Constructor Details

    • AlertText

      public AlertText()
  • Method Details

    • currentlyVisible

      public static AlertText currentlyVisible()
    • thenDismiss

      public AlertText thenDismiss()
    • thenAccept

      public AlertText thenAccept()
    • answeredBy

      public String answeredBy(net.serenitybdd.screenplay.Actor actor)
      Specified by:
      answeredBy in interface net.serenitybdd.screenplay.Question<String>