Class: Playwright::ConsoleMessage
- Inherits:
-
PlaywrightApi
- Object
- PlaywrightApi
- Playwright::ConsoleMessage
- Defined in:
- lib/playwright_api/console_message.rb
Overview
‘ConsoleMessage` objects are dispatched by page via the [`event: Page.console`] event.
Instance Method Summary collapse
- #args ⇒ Object
- #location ⇒ Object
-
#off(event, callback) ⇒ Object
– inherited from EventEmitter –.
-
#on(event, callback) ⇒ Object
– inherited from EventEmitter –.
-
#once(event, callback) ⇒ Object
– inherited from EventEmitter –.
- #text ⇒ Object
-
#type ⇒ Object
One of the following values: ‘’log’‘, `’debug’‘, `’info’‘, `’error’‘, `’warning’‘, `’dir’‘, `’dirxml’‘, `’table’‘, `’trace’‘, `’clear’‘, `’startGroup’‘, `’startGroupCollapsed’‘, `’endGroup’‘, `’assert’‘, `’profile’‘, `’profileEnd’‘, `’count’‘, `’timeEnd’‘.
Methods inherited from PlaywrightApi
Constructor Details
This class inherits a constructor from Playwright::PlaywrightApi
Instance Method Details
#args ⇒ Object
5 6 7 |
# File 'lib/playwright_api/console_message.rb', line 5 def args wrap_impl(@impl.args) end |
#location ⇒ Object
9 10 11 |
# File 'lib/playwright_api/console_message.rb', line 9 def location wrap_impl(@impl.location) end |
#off(event, callback) ⇒ Object
– inherited from EventEmitter –
26 27 28 |
# File 'lib/playwright_api/console_message.rb', line 26 def off(event, callback) event_emitter_proxy.off(event, callback) end |
#on(event, callback) ⇒ Object
– inherited from EventEmitter –
38 39 40 |
# File 'lib/playwright_api/console_message.rb', line 38 def on(event, callback) event_emitter_proxy.on(event, callback) end |
#once(event, callback) ⇒ Object
– inherited from EventEmitter –
32 33 34 |
# File 'lib/playwright_api/console_message.rb', line 32 def once(event, callback) event_emitter_proxy.once(event, callback) end |
#text ⇒ Object
13 14 15 |
# File 'lib/playwright_api/console_message.rb', line 13 def text wrap_impl(@impl.text) end |
#type ⇒ Object
One of the following values: ‘’log’‘, `’debug’‘, `’info’‘, `’error’‘, `’warning’‘, `’dir’‘, `’dirxml’‘, `’table’‘, `’trace’‘, `’clear’‘, `’startGroup’‘, `’startGroupCollapsed’‘, `’endGroup’‘, `’assert’‘, `’profile’‘, `’profileEnd’‘, `’count’‘, `’timeEnd’‘.
20 21 22 |
# File 'lib/playwright_api/console_message.rb', line 20 def type wrap_impl(@impl.type) end |