Table of Contents

Class NamedScriptBasis

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

A basis class for named scripts, not for use in applications of Screenplay.

public abstract class NamedScriptBasis : IHasName
Inheritance
NamedScriptBasis
Implements
Derived
Inherited Members

Constructors

NamedScriptBasis(string, string)

Initialises a new instance of NamedScriptBasis

protected NamedScriptBasis(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.

Properties

Name

Gets a human-readable name for this script, as would be displayed in a report.

public string Name { get; }

Property Value

string

ScriptBody

Gets the body of the JavaScript.

public string ScriptBody { get; }

Property Value

string