Class OnStage

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

public class OnStage extends Object
The stage is used to keep track of the actors taking part in a Screenplay test. It is useful if you don't keep track of the actors explicitly, but just refer to them by name, as is often done in Cucumber scenarios. Actors can be referred to by name (which must be unique for a given actor) or a pronoun. The default pronouns are "he","she","they" and "it", and they are used interchangeably - any pronoun will always refer to last named actor who performed some action. Pronouns can be configured using the screenplay.pronouns property, e.g.
     
         screenplay.pronouns = il,elle
     
 
The current stage is kept as a ThreadLocal object, so if you have multiple threads in the same Screenplay test, you need to propagate the stage to each new thread using the setTheStage() method.