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, location = nil) ⇒ WebError

Returns a new instance of WebError.



69
70
71
72
73
# File 'lib/playwright/errors.rb', line 69

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

Instance Attribute Details

#error ⇒ Object (readonly)

Returns the value of attribute error.



75
76
77
# File 'lib/playwright/errors.rb', line 75

def error
  @error
end

#location ⇒ Object (readonly)

Returns the value of attribute location.



75
76
77
# File 'lib/playwright/errors.rb', line 75

def location
  @location
end

#page ⇒ Object (readonly)

Returns the value of attribute page.



75
76
77
# File 'lib/playwright/errors.rb', line 75

def page
  @page
end