import {ExecuteScriptWithArguments} from '@serenity-js/protractor/lib/screenplay/interactions'
public class | source

ExecuteScriptWithArguments

Allows for a script to be executed to be parametrised.

Please note that the arguments can be both synchronous and asynchronous Questions as well as regular static values.

Extends:

Interaction → ExecuteScriptWithArguments

Direct Subclasses:

src/screenplay/interactions/ExecuteScript.ts~ExecuteAsynchronousScript, src/screenplay/interactions/ExecuteScript.ts~ExecuteSynchronousScript

See also:

Constructor Summary

Public Constructor
public

constructor(script: string | Function, args: Array<Answerable<any>>)

Method Summary

Public Methods
public

performAs(actor: UsesAbilities & AnswersQuestions): PromiseLike<void>

Makes the provided Actor perform this Interaction.

Public Constructors

public constructor(script: string | Function, args: Array<Answerable<any>>) source

Params:

NameTypeAttributeDescription
script string | Function

The script to be executed

args Array<Answerable<any>>

Arguments to parametrise the script with

Public Methods

public performAs(actor: UsesAbilities & AnswersQuestions): PromiseLike<void> source

Makes the provided Actor perform this Interaction.

Params:

NameTypeAttributeDescription
actor UsesAbilities & AnswersQuestions

An Actor to perform this Interaction

Returns:

PromiseLike<void>