Link Search Menu Expand Document

Actor

An actor is a persona or role executing a set of activities against a system. An Actor can be created as follows:

const theActor = Actor.named(`the actors name`)

To be able to execute those activities, an ability is needed.

For example to interact with a browser the ability BrowseTheWeb can be assigned to the actor.

theActor.whoCan(BrowseTheWeb.using(aBrowser));

browser creation is explained in section BrowseTheWeb

With the ability assigned the actor is now ready to execute activities:

theActor.attemptsTo(
    Click.on(element),
    Enter.value(`my value`).into(inputField)
)