Class ConsoleMessageImpl

java.lang.Object
com.microsoft.playwright.impl.ConsoleMessageImpl
All Implemented Interfaces:
ConsoleMessage

public class ConsoleMessageImpl extends Object implements ConsoleMessage
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Connection
     
    private final com.google.gson.JsonObject
     
    private PageImpl
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConsoleMessageImpl(Connection connection, com.google.gson.JsonObject initializer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List of arguments passed to a console function call.
    URL of the resource followed by 0-based line and column numbers in the resource formatted as URL:line:column.
    The page that produced this console message, if any.
    The text of the console message.
    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 class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • connection

      private final Connection connection
    • page

      private PageImpl page
    • initializer

      private final com.google.gson.JsonObject initializer
  • Constructor Details

    • ConsoleMessageImpl

      public ConsoleMessageImpl(Connection connection, com.google.gson.JsonObject initializer)
  • Method Details

    • type

      public String type()
      Description copied from interface: ConsoleMessage
      One of the following values: "log", "debug", "info", "error", "warning", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd", "count", "timeEnd".
      Specified by:
      type in interface ConsoleMessage
    • text

      public String text()
      Description copied from interface: ConsoleMessage
      The text of the console message.
      Specified by:
      text in interface ConsoleMessage
    • args

      public List<JSHandle> args()
      Description copied from interface: ConsoleMessage
      List of arguments passed to a console function call. See also Page.onConsoleMessage().
      Specified by:
      args in interface ConsoleMessage
    • location

      public String location()
      Description copied from interface: ConsoleMessage
      URL of the resource followed by 0-based line and column numbers in the resource formatted as URL:line:column.
      Specified by:
      location in interface ConsoleMessage
    • page

      public PageImpl page()
      Description copied from interface: ConsoleMessage
      The page that produced this console message, if any.
      Specified by:
      page in interface ConsoleMessage