Exception: Ferrum::NoExecutionContextError

Inherits:
BrowserError show all
Defined in:
lib/ferrum/errors.rb,
sig/ferrum/errors.rbs

Overview

Raised when there's no JavaScript execution context available to run a command against, e.g. because the frame isn't attached.

Instance Attribute Summary

Attributes inherited from BrowserError

#response

Instance Method Summary collapse

Methods inherited from BrowserError

#code, #data

Constructor Details

#initialize(response = nil) ⇒ NoExecutionContextError

Returns a new instance of NoExecutionContextError.

Parameters:

  • response (Hash[String, untyped], nil) (defaults to: nil)


279
280
281
# File 'lib/ferrum/errors.rb', line 279

def initialize(response = nil)
  super(response || { "message" => "There's no JavaScript context to run in, the frame is detached or navigating" })
end