Class CaptureConsoleMessages.CapturedConsoleMessage
java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.CaptureConsoleMessages.CapturedConsoleMessage
- Enclosing class:
- CaptureConsoleMessages
Represents a captured console message with its type, text, and location.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the source location (URL and line number).getText()Get the message text.getType()Get the message type (e.g., "log", "error", "warning", "info").booleanisError()Check if this is an error message.booleanisInfo()Check if this is an info message.booleanisLog()Check if this is a log message.booleanCheck if this is a warning message.toString()
-
Constructor Details
-
CapturedConsoleMessage
-
-
Method Details
-
getType
Get the message type (e.g., "log", "error", "warning", "info"). -
getText
Get the message text. -
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
-