Table of Contents

Class ScriptParsedEventArgs

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

Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.

public sealed class ScriptParsedEventArgs : EventArgs
Inheritance
ScriptParsedEventArgs
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?

DebugSymbols

If the scriptLanguage is WebAssembly, the source of debug symbols for the module.

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

Property Value

DebugSymbols[]

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

IsLiveEdit

True, if this script is generated as a result of the live edit operation.

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

Property Value

bool?

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?

ResolvedBreakpoints

The list of set breakpoints in this script if calls to setBreakpointByUrl matches this script's URL or hash. Clients that use this list can ignore the breakpointResolved event. They are equivalent.

[JsonPropertyName("resolvedBreakpoints")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ResolvedBreakpoint[]? ResolvedBreakpoints { get; set; }

Property Value

ResolvedBreakpoint[]

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