Exception: Ferrum::NoExecutionContextError
- Inherits:
-
BrowserError
- Object
- StandardError
- Error
- BrowserError
- Ferrum::NoExecutionContextError
- 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
Instance Method Summary collapse
-
#initialize(response = nil) ⇒ NoExecutionContextError
constructor
A new instance of NoExecutionContextError.
Methods inherited from BrowserError
Constructor Details
#initialize(response = nil) ⇒ NoExecutionContextError
Returns a new instance of NoExecutionContextError.
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 |