Class: Playwright::WebError
- Inherits:
-
Object
- Object
- Playwright::WebError
- Defined in:
- lib/playwright/errors.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(error, page, location = nil) ⇒ WebError
constructor
A new instance of WebError.
Constructor Details
#initialize(error, page, location = nil) ⇒ WebError
Returns a new instance of WebError.
66 67 68 69 70 |
# File 'lib/playwright/errors.rb', line 66 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.
72 73 74 |
# File 'lib/playwright/errors.rb', line 72 def error @error end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
72 73 74 |
# File 'lib/playwright/errors.rb', line 72 def location @location end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
72 73 74 |
# File 'lib/playwright/errors.rb', line 72 def page @page end |