Table of Contents

Class InitializationScript

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Represents a JavaScript script that is loaded and run on every document load.

public class InitializationScript
Inheritance
InitializationScript
Inherited Members

Properties

ScriptId

Gets the internal ID of the initialization script.

public string ScriptId { get; }

Property Value

string

ScriptName

Gets the friendly name of the initialization script.

public string ScriptName { get; }

Property Value

string

ScriptSource

Gets the JavaScript source of the initialization script.

public string ScriptSource { get; }

Property Value

string

Methods

Equals(object?)

Indicates whether the current InitializationScript is equal to another InitializationScript of the same type.

public override bool Equals(object? obj)

Parameters

obj object

An InitializationScript to compare with this InitializationScript.

Returns

bool

true if the current InitializationScript is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as a hash function for a particular InitializationScript.

public override int GetHashCode()

Returns

int

A hash code for the current InitializationScript.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.