Class ScriptFailedToParse
java.lang.Object
org.openqa.selenium.devtools.v119.debugger.model.ScriptFailedToParse
Fired when virtual machine fails to parse the script.
-
Constructor Summary
ConstructorsConstructorDescriptionScriptFailedToParse
(ScriptId scriptId, String url, Integer startLine, Integer startColumn, Integer endLine, Integer endColumn, ExecutionContextId executionContextId, String hash, Optional<Map<String, Object>> executionContextAuxData, Optional<String> sourceMapURL, Optional<Boolean> hasSourceURL, Optional<Boolean> isModule, Optional<Integer> length, Optional<StackTrace> stackTrace, Optional<Integer> codeOffset, Optional<ScriptLanguage> scriptLanguage, Optional<String> embedderName) -
Method Summary
Modifier and TypeMethodDescriptionIf the scriptLanguage is WebAssembly, the code section offset in 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 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
-
ScriptFailedToParse
public ScriptFailedToParse(ScriptId scriptId, String url, Integer startLine, Integer startColumn, Integer endLine, Integer endColumn, ExecutionContextId executionContextId, String hash, Optional<Map<String, Object>> executionContextAuxData, Optional<String> sourceMapURL, Optional<Boolean> hasSourceURL, Optional<Boolean> isModule, Optional<Integer> length, Optional<StackTrace> stackTrace, Optional<Integer> codeOffset, Optional<ScriptLanguage> scriptLanguage, 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} -
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. -
getEmbedderName
The name the embedder supplied for this script.
-