Exception: Ferrum::ExecutionContextDestroyedError

Inherits:
BrowserError show all
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

#response

Instance Method Summary collapse

Methods inherited from BrowserError

#code, #data

Constructor Details

#initialize(response) ⇒ ExecutionContextDestroyedError

Returns a new instance of ExecutionContextDestroyedError.

Parameters:

  • response (Hash[String, untyped])


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