Class CaptureConsoleMessages.CapturedConsoleMessage

java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.CaptureConsoleMessages.CapturedConsoleMessage
Enclosing class:
CaptureConsoleMessages

public static class CaptureConsoleMessages.CapturedConsoleMessage extends Object
Represents a captured console message with its type, text, and location.
  • Constructor Details

    • CapturedConsoleMessage

      public CapturedConsoleMessage(String type, String text, String location)
  • Method Details

    • getType

      public String getType()
      Get the message type (e.g., "log", "error", "warning", "info").
    • getText

      public String getText()
      Get the message text.
    • getLocation

      public String getLocation()
      Get the source location (URL and line number).
    • isError

      public boolean isError()
      Check if this is an error message.
    • isWarning

      public boolean isWarning()
      Check if this is a warning message.
    • isInfo

      public boolean isInfo()
      Check if this is an info message.
    • isLog

      public boolean isLog()
      Check if this is a log message.
    • toString

      public String toString()
      Overrides:
      toString in class Object