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

Instance Method Details

#argsObject



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

def args
  wrap_channel_owner(@channel_owner.args)
end

#locationObject



9
10
11
# File 'lib/playwright_api/console_message.rb', line 9

def location
  wrap_channel_owner(@channel_owner.location)
end

#textObject



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

def text
  wrap_channel_owner(@channel_owner.text)
end

#typeObject



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

def type
  wrap_channel_owner(@channel_owner.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