Exception: Ferrum::NoExecutionContextError

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

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.



161
162
163
# File 'lib/ferrum/errors.rb', line 161

def initialize(response = nil)
  super(response || { "message" => "There's no context available" })
end