java.lang.Object
org.openqa.selenium.devtools.v119.debugger.model.CallFrame

public class CallFrame extends Object
JavaScript call frame. Array of call frames form the call stack.
  • Constructor Details

  • Method Details

    • getCallFrameId

      public CallFrameId getCallFrameId()
      Call frame identifier. This identifier is only valid while the virtual machine is paused.
    • getFunctionName

      public String getFunctionName()
      Name of the JavaScript function called on this call frame.
    • getFunctionLocation

      public Optional<Location> getFunctionLocation()
      Location in the source code.
    • getLocation

      public Location getLocation()
      Location in the source code.
    • getUrl

      @Deprecated public String getUrl()
      Deprecated.
      JavaScript script name or url. Deprecated in favor of using the `location.scriptId` to resolve the URL via a previously sent `Debugger.scriptParsed` event.
    • getScopeChain

      public List<Scope> getScopeChain()
      Scope chain for this call frame.
    • getThis

      public RemoteObject getThis()
      `this` object for this call frame.
    • getReturnValue

      public Optional<RemoteObject> getReturnValue()
      The value being returned, if the function is at return point.
    • getCanBeRestarted

      @Beta public Optional<Boolean> getCanBeRestarted()
      Valid only while the VM is paused and indicates whether this frame can be restarted or not. Note that a `true` value here does not guarantee that Debugger#restartFrame with this CallFrameId will be successful, but it is very likely.