Class: Playwright::ConsoleMessage

Inherits:
PlaywrightApi show all
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

Methods inherited from PlaywrightApi

#==, #initialize, wrap

Constructor Details

This class inherits a constructor from Playwright::PlaywrightApi

Instance Method Details

#argsObject



5
6
7
# File 'lib/playwright_api/console_message.rb', line 5

def args
  wrap_impl(@impl.args)
end

#locationObject



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

#textObject



13
14
15
# File 'lib/playwright_api/console_message.rb', line 13

def text
  wrap_impl(@impl.text)
end

#typeObject

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