Class ScriptFailedToParse

java.lang.Object
org.openqa.selenium.devtools.v85.debugger.model.ScriptFailedToParse

public class ScriptFailedToParse extends Object
Fired when virtual machine fails to parse the script.
  • Constructor Details

  • Method Details

    • getScriptId

      public ScriptId getScriptId()
      Identifier of the script parsed.
    • getUrl

      public String getUrl()
      URL or name of the script parsed (if any).
    • getStartLine

      public Integer getStartLine()
      Line offset of the script within the resource with given URL (for script tags).
    • getStartColumn

      public Integer getStartColumn()
      Column offset of the script within the resource with given URL.
    • getEndLine

      public Integer getEndLine()
      Last line of the script.
    • getEndColumn

      public Integer getEndColumn()
      Length of the last line of the script.
    • getExecutionContextId

      public ExecutionContextId getExecutionContextId()
      Specifies script creation context.
    • getHash

      public String getHash()
      Content hash of the script.
    • getExecutionContextAuxData

      public Optional<Map<String,Object>> getExecutionContextAuxData()
      Embedder-specific auxiliary data.
    • getSourceMapURL

      public Optional<String> getSourceMapURL()
      URL of source map associated with script (if any).
    • getHasSourceURL

      public Optional<Boolean> getHasSourceURL()
      True, if this script has sourceURL.
    • getIsModule

      public Optional<Boolean> getIsModule()
      True, if this script is ES6 module.
    • getLength

      public Optional<Integer> getLength()
      This script length.
    • getStackTrace

      @Beta public Optional<StackTrace> getStackTrace()
      JavaScript top stack frame of where the script parsed event was triggered if available.
    • getCodeOffset

      @Beta public Optional<Integer> getCodeOffset()
      If the scriptLanguage is WebAssembly, the code section offset in the module.
    • getScriptLanguage

      @Beta public Optional<ScriptLanguage> getScriptLanguage()
      The language of the script.