Table of Contents

Class SetScriptSourceCommandResponse

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

Response for Edits JavaScript source live.

In general, functions that are currently on the stack can not be edited with a single exception: If the edited function is the top-most stack frame and that is the only activation of that function on the stack. In this case the live edit will be successful and a Debugger.restartFrame for the top-most function is automatically triggered.

public sealed class SetScriptSourceCommandResponse : ICommandResponse<SetScriptSourceCommandSettings>, ICommandResponse
Inheritance
SetScriptSourceCommandResponse
Implements
Inherited Members
Extension Methods

Properties

AsyncStackTrace

Async stack trace, if any.

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

Property Value

StackTrace

AsyncStackTraceId

Async stack trace, if any.

[JsonPropertyName("asyncStackTraceId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public StackTraceId? AsyncStackTraceId { get; set; }

Property Value

StackTraceId

CallFrames

New stack trace in case editing has happened while VM was stopped.

[JsonPropertyName("callFrames")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CallFrame[]? CallFrames { get; set; }

Property Value

CallFrame[]

ExceptionDetails

Exception details if any. Only present when status is CompileError.

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

Property Value

ExceptionDetails

StackChanged

Whether current call stack was modified after applying the changes.

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

Property Value

bool?

Status

Whether the operation was successful or not. Only Ok denotes a successful live edit while the other enum variants denote why the live edit failed.

[JsonPropertyName("status")]
public string Status { get; set; }

Property Value

string