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.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(error, page) ⇒ WebError
constructor
A new instance of WebError.
Constructor Details
#initialize(error, page) ⇒ WebError
Returns a new instance of WebError.
45 46 47 48 |
# File 'lib/playwright/errors.rb', line 45 def initialize(error, page) @error = error @page = PlaywrightApi.wrap(page) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
50 51 52 |
# File 'lib/playwright/errors.rb', line 50 def error @error end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
50 51 52 |
# File 'lib/playwright/errors.rb', line 50 def page @page end |