Exception: Ferrum::ExecutionContextDestroyedError
- Inherits:
-
BrowserError
- Object
- StandardError
- Error
- BrowserError
- Ferrum::ExecutionContextDestroyedError
- Defined in:
- lib/ferrum/errors.rb,
sig/ferrum/errors.rbs
Overview
Raised when the page navigates or closes, or the frame goes away, while a command is running, e.g. while an evaluated script awaits a promise. The command isn't retried, as it may have already taken effect.
Instance Attribute Summary
Attributes inherited from BrowserError
Instance Method Summary collapse
-
#initialize(response) ⇒ ExecutionContextDestroyedError
constructor
A new instance of ExecutionContextDestroyedError.
Methods inherited from BrowserError
Constructor Details
#initialize(response) ⇒ ExecutionContextDestroyedError
Returns a new instance of ExecutionContextDestroyedError.
293 294 295 296 |
# File 'lib/ferrum/errors.rb', line 293 def initialize(response) super(response.merge("message" => "The execution context was destroyed while the command was running, most " \ "likely because of a navigation")) end |