java.lang.Object
net.serenitybdd.screenplay.actors.Stage

public class Stage extends Object
The stage keeps track of the actors currently in a screenplay test, referenced by name. You rarely need to use this class directly in your tests. Normally you would use the OnStage class instead.
  • Constructor Details

    • Stage

      public Stage(Cast cast)
  • Method Details

    • shineSpotlightOn

      public Actor shineSpotlightOn(String actorName)
      Place an actor with a given name in the spotlight, without the intent to have them perform an action at this time.
    • theActorInTheSpotlight

      public Actor theActorInTheSpotlight()
      Return the current actor in the spotlight.
    • theActor

      public Actor theActor()
      A shortened form of theActorInTheSpotight()
    • drawTheCurtain

      public void drawTheCurtain()
      This method should be called at the end of the screenplay test to perform teardown actions on each actor. It will generally be done automatically by Serenity.
    • anActorIsOnStage

      public boolean anActorIsOnStage()
      Check whether there is any actor in the spotlight at the moment.