Class ScriptParsed
java.lang.Object
org.openqa.selenium.devtools.v126.debugger.model.ScriptParsed
Fired when virtual machine parses script. This event is also fired for all known and uncollected
scripts upon enabling debugger.
-
Constructor Summary
ConstructorsConstructorDescriptionScriptParsed
(ScriptId scriptId, String url, Integer startLine, Integer startColumn, Integer endLine, Integer endColumn, ExecutionContextId executionContextId, String hash, Optional<Map<String, Object>> executionContextAuxData, Optional<Boolean> isLiveEdit, Optional<String> sourceMapURL, Optional<Boolean> hasSourceURL, Optional<Boolean> isModule, Optional<Integer> length, Optional<StackTrace> stackTrace, Optional<Integer> codeOffset, Optional<ScriptLanguage> scriptLanguage, Optional<DebugSymbols> debugSymbols, Optional<String> embedderName) -
Method Summary
Modifier and TypeMethodDescriptionIf the scriptLanguage is WebAssembly, the code section offset in the module.If the scriptLanguage is WebASsembly, the source of debug symbols for the module.The name the embedder supplied for this script.Length of the last line of the script.Last line of the script.Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}Specifies script creation context.getHash()
Content hash of the script, SHA-256.True, if this script has sourceURL.True, if this script is generated as a result of the live edit operation.True, if this script is ES6 module.This script length.Identifier of the script parsed.The language of the script.URL of source map associated with script (if any).JavaScript top stack frame of where the script parsed event was triggered if available.Column offset of the script within the resource with given URL.Line offset of the script within the resource with given URL (for script tags).getUrl()
URL or name of the script parsed (if any).
-
Constructor Details
-
ScriptParsed
public ScriptParsed(ScriptId scriptId, String url, Integer startLine, Integer startColumn, Integer endLine, Integer endColumn, ExecutionContextId executionContextId, String hash, Optional<Map<String, Object>> executionContextAuxData, Optional<Boolean> isLiveEdit, Optional<String> sourceMapURL, Optional<Boolean> hasSourceURL, Optional<Boolean> isModule, Optional<Integer> length, Optional<StackTrace> stackTrace, Optional<Integer> codeOffset, Optional<ScriptLanguage> scriptLanguage, Optional<DebugSymbols> debugSymbols, Optional<String> embedderName)
-
-
Method Details
-
getScriptId
Identifier of the script parsed. -
getUrl
URL or name of the script parsed (if any). -
getStartLine
Line offset of the script within the resource with given URL (for script tags). -
getStartColumn
Column offset of the script within the resource with given URL. -
getEndLine
Last line of the script. -
getEndColumn
Length of the last line of the script. -
getExecutionContextId
Specifies script creation context. -
getHash
Content hash of the script, SHA-256. -
getExecutionContextAuxData
Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} -
getIsLiveEdit
True, if this script is generated as a result of the live edit operation. -
getSourceMapURL
URL of source map associated with script (if any). -
getHasSourceURL
True, if this script has sourceURL. -
getIsModule
True, if this script is ES6 module. -
getLength
This script length. -
getStackTrace
JavaScript top stack frame of where the script parsed event was triggered if available. -
getCodeOffset
If the scriptLanguage is WebAssembly, the code section offset in the module. -
getScriptLanguage
The language of the script. -
getDebugSymbols
If the scriptLanguage is WebASsembly, the source of debug symbols for the module. -
getEmbedderName
The name the embedder supplied for this script.
-