Class: Playwright::WebError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, page) ⇒ WebError

Returns a new instance of WebError.



63
64
65
66
# File 'lib/playwright/errors.rb', line 63

def initialize(error, page)
  @error = error
  @page = PlaywrightApi.wrap(page)
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



68
69
70
# File 'lib/playwright/errors.rb', line 68

def error
  @error
end

#pageObject (readonly)

Returns the value of attribute page.



68
69
70
# File 'lib/playwright/errors.rb', line 68

def page
  @page
end