Table of Contents

Class ScriptFailedToParseEventArgs

Namespace
OpenQA.Selenium.DevTools.V146.Debugger
Assembly
Selenium.WebDriver.dll

Fired when virtual machine fails to parse the script.

public sealed class ScriptFailedToParseEventArgs : EventArgs
Inheritance
ScriptFailedToParseEventArgs
Inherited Members

Properties

BuildId

For Wasm modules, the content of the build_id custom section. For JavaScript the debugId magic comment.

[JsonPropertyName("buildId")]
public string BuildId { get; set; }

Property Value

string

CodeOffset

If the scriptLanguage is WebAssembly, the code section offset in the module.

[JsonPropertyName("codeOffset")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? CodeOffset { get; set; }

Property Value

long?

EmbedderName

The name the embedder supplied for this script.

[JsonPropertyName("embedderName")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? EmbedderName { get; set; }

Property Value

string

EndColumn

Length of the last line of the script.

[JsonPropertyName("endColumn")]
public long EndColumn { get; set; }

Property Value

long

EndLine

Last line of the script.

[JsonPropertyName("endLine")]
public long EndLine { get; set; }

Property Value

long

ExecutionContextAuxData

Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}

[JsonPropertyName("executionContextAuxData")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public object? ExecutionContextAuxData { get; set; }

Property Value

object

ExecutionContextId

Specifies script creation context.

[JsonPropertyName("executionContextId")]
public long ExecutionContextId { get; set; }

Property Value

long

HasSourceURL

True, if this script has sourceURL.

[JsonPropertyName("hasSourceURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? HasSourceURL { get; set; }

Property Value

bool?

Hash

Content hash of the script, SHA-256.

[JsonPropertyName("hash")]
public string Hash { get; set; }

Property Value

string

IsModule

True, if this script is ES6 module.

[JsonPropertyName("isModule")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IsModule { get; set; }

Property Value

bool?

Length

This script length.

[JsonPropertyName("length")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? Length { get; set; }

Property Value

long?

ScriptId

Identifier of the script parsed.

[JsonPropertyName("scriptId")]
public string ScriptId { get; set; }

Property Value

string

ScriptLanguage

The language of the script.

[JsonPropertyName("scriptLanguage")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ScriptLanguage? ScriptLanguage { get; set; }

Property Value

ScriptLanguage?

SourceMapURL

URL of source map associated with script (if any).

[JsonPropertyName("sourceMapURL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? SourceMapURL { get; set; }

Property Value

string

StackTrace

JavaScript top stack frame of where the script parsed event was triggered if available.

[JsonPropertyName("stackTrace")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public StackTrace? StackTrace { get; set; }

Property Value

StackTrace

StartColumn

Column offset of the script within the resource with given URL.

[JsonPropertyName("startColumn")]
public long StartColumn { get; set; }

Property Value

long

StartLine

Line offset of the script within the resource with given URL (for script tags).

[JsonPropertyName("startLine")]
public long StartLine { get; set; }

Property Value

long

Url

URL or name of the script parsed (if any).

[JsonPropertyName("url")]
public string Url { get; set; }

Property Value

string