Class RunScriptCommandSettings
Runs script with given id in a given context.
public sealed class RunScriptCommandSettings : ICommand
- Inheritance
-
RunScriptCommandSettings
- Implements
- Inherited Members
Properties
AwaitPromise
Whether execution should await for resulting value and return once awaited promise is
resolved.
[JsonPropertyName("awaitPromise")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? AwaitPromise { get; set; }
Property Value
- bool?
CommandName
Gets the name of the command.
[JsonIgnore]
public string CommandName { get; }
Property Value
ExecutionContextId
Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
[JsonPropertyName("executionContextId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? ExecutionContextId { get; set; }
Property Value
- long?
GeneratePreview
Whether preview should be generated for the result.
[JsonPropertyName("generatePreview")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? GeneratePreview { get; set; }
Property Value
- bool?
IncludeCommandLineAPI
Determines whether Command Line API should be available during the evaluation.
[JsonPropertyName("includeCommandLineAPI")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IncludeCommandLineAPI { get; set; }
Property Value
- bool?
ObjectGroup
Symbolic group name that can be used to release multiple objects.
[JsonPropertyName("objectGroup")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ObjectGroup { get; set; }
Property Value
ReturnByValue
Whether the result is expected to be a JSON object which should be sent by value.
[JsonPropertyName("returnByValue")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? ReturnByValue { get; set; }
Property Value
- bool?
ScriptId
Id of the script to run.
[JsonPropertyName("scriptId")]
public string ScriptId { get; set; }
Property Value
Silent
In silent mode exceptions thrown during evaluation are not reported and do not pause
execution. Overrides setPauseOnException state.
[JsonPropertyName("silent")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? Silent { get; set; }
Property Value
- bool?