Options
All
  • Public
  • Public/Protected
  • All
Menu

Console listener. Makes message queue after instance creation. Supports filtering messages by type. Can be used for console message assertion or for wait for specific message.

Hierarchy

  • ConsoleDriver

Index

Console

clear

  • clear(): void

getMessages

  • getMessages(messageType?: "log" | "debug" | "info" | "error" | "warning" | "dir" | "dirxml" | "table" | "trace" | "clear" | "startGroup" | "startGroupCollapsed" | "endGroup" | "assert" | "profile" | "profileEnd" | "count" | "timeEnd" | "verbose"): ConsoleDriverMessage[]
  • Returns all console messages, can be filtered by message type.

    Parameters

    • Optional messageType: "log" | "debug" | "info" | "error" | "warning" | "dir" | "dirxml" | "table" | "trace" | "clear" | "startGroup" | "startGroupCollapsed" | "endGroup" | "assert" | "profile" | "profileEnd" | "count" | "timeEnd" | "verbose"

    Returns ConsoleDriverMessage[]

waitForMessage

  • waitForMessage(message: string): Promise<void>

Other

constructor

Generated using TypeDoc