Options
All
  • Public
  • Public/Protected
  • All
Menu

ConsoleMessage objects are dispatched by page via the 'console' event.

Hierarchy

Index

Methods

args

  • The message arguments.

    Returns JSHandle[]

location

text

  • text(): string
  • The message text.

    Returns string

toJson

  • toJson(): any
  • returns the object as JSON, so you don't need to call methods to obtain property values.

    example
    page.on("console",(details)=>{
    console.warn(details.toJson());
    });

    Returns any

type