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
-
#type_text ⇒ 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
#==, from_channel_owner, #initialize
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 –
37 38 39 |
# File 'lib/playwright_api/console_message.rb', line 37 def off(event, callback) wrap_impl(@impl.off(event, callback)) end |
#on(event, callback) ⇒ Object
– inherited from EventEmitter –
31 32 33 |
# File 'lib/playwright_api/console_message.rb', line 31 def on(event, callback) wrap_impl(@impl.on(event, callback)) end |
#once(event, callback) ⇒ Object
– inherited from EventEmitter –
43 44 45 |
# File 'lib/playwright_api/console_message.rb', line 43 def once(event, callback) wrap_impl(@impl.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
25 26 27 |
# File 'lib/playwright_api/console_message.rb', line 25 def type wrap_impl(@impl.type) end |
#type_text ⇒ 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_text raise NotImplementedError.new('type_text is not implemented yet.') end |