Exception: Playwright::TargetClosedError

Inherits:
Error
  • Object
show all
Defined in:
lib/playwright/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#message, #name, #stack

Instance Method Summary collapse

Methods inherited from Error

#log=, parse

Constructor Details

#initialize(message: nil, stack: []) ⇒ TargetClosedError

Returns a new instance of TargetClosedError.



56
57
58
59
# File 'lib/playwright/errors.rb', line 56

def initialize(message: nil, stack: [])
  _message = message || 'Target page, context or browser has been closed'
  super(name: 'TargetClosedError', message: _message, stack: stack)
end