Skip to main content

abstractExecuteScriptWithArguments

Allows for a script to be executed to be parametrised.

Learn more

Hierarchy

  • Interaction
    • ExecuteScriptWithArguments

Index

Constructors

constructor

  • Parameters

    • description: string
    • script: string | Function
    • args: any[] = []

    Returns ExecuteScriptWithArguments

Methods

instantiationLocation

  • instantiationLocation(): FileSystemLocation
  • Returns the location where this Activity was instantiated.


    Returns FileSystemLocation

toString

  • toString(): string
  • Generates a human-friendly description to be used when reporting this Activity.

    Note: When this activity is reported, token #actor in the description will be replaced with the name of the actor performing this Activity.

    For example, #actor clicks on a button becomes Wendy clicks on a button.


    Returns string

publicabstractwithArguments

  • withArguments(...args: any[]): Interaction
  • Instantiates this Interaction


    Parameters

    • rest...args: any[]

      Arguments to parametrise the script with

    Returns Interaction

performAs

  • performAs(actor: UsesAbilities & CollectsArtifacts & AnswersQuestions): Promise<void>
  • @inheritDoc

    Parameters

    • actor: UsesAbilities & CollectsArtifacts & AnswersQuestions

    Returns Promise<void>