Table of Contents

Class NamedScript

Namespace
CSF.Screenplay.Selenium
Assembly
CSF.Screenplay.Selenium.dll

A model representing a pre-written piece of executable JavaScript, which accepts no parameters and which returns no result.

public class NamedScript : NamedScriptBasis, IHasName
Inheritance
NamedScript
Implements
Inherited Members

Constructors

NamedScript(string, string)

Initialises a new instance of NamedScript.

public NamedScript(string scriptBody, string name)

Parameters

scriptBody string

The body of the JavaScript

name string

The human-readable name of the script

Exceptions

ArgumentException

If either parameter is null or whitespace-only.

See Also

NamedScript<T1>
NamedScript<T1, T2>
NamedScript<T1, T2, T3>
NamedScript<T1, T2, T3, T4>
NamedScript<T1, T2, T3, T4, T5>
NamedScript<T1, T2, T3, T4, T5, T6>
NamedScript<T1, T2, T3, T4, T5, T6, T7>
NamedScriptWithResult<TResult>
NamedScriptWithResult<T1, TResult>
NamedScriptWithResult<T1, T2, TResult>
NamedScriptWithResult<T1, T2, T3, TResult>
NamedScriptWithResult<T1, T2, T3, T4, TResult>
NamedScriptWithResult<T1, T2, T3, T4, T5, TResult>
NamedScriptWithResult<T1, T2, T3, T4, T5, T6, TResult>
NamedScriptWithResult<T1, T2, T3, T4, T5, T6, T7, TResult>