Table of Contents

Class JavaScriptException

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Represents exceptions that are thrown when an error occurs during execution of JavaScript.

[Serializable]
public class JavaScriptException : WebDriverException, ISerializable
Inheritance
JavaScriptException
Implements
Inherited Members

Constructors

JavaScriptException()

Initializes a new instance of the JavaScriptException class.

public JavaScriptException()

JavaScriptException(string?)

Initializes a new instance of the JavaScriptException class with a specified error message.

public JavaScriptException(string? message)

Parameters

message string

The message that describes the error.

JavaScriptException(string?, Exception?)

Initializes a new instance of the JavaScriptException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public JavaScriptException(string? message, Exception? innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.