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

#==, from_channel_owner, #initialize

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 –



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

#textObject



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

def text
  wrap_impl(@impl.text)
end

#typeObject



25
26
27
# File 'lib/playwright_api/console_message.rb', line 25

def type
  wrap_impl(@impl.type)
end

#type_textObject

One of the following values: ‘’log’‘, `’debug’‘, `’info’‘, `’error’‘, `’warning’‘, `’dir’‘, `’dirxml’‘, `’table’‘, `’trace’‘, `’clear’‘, `’startGroup’‘, `’startGroupCollapsed’‘, `’endGroup’‘, `’assert’‘, `’profile’‘, `’profileEnd’‘, `’count’‘, `’timeEnd’‘.

Raises:

  • (NotImplementedError)


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