Package com.microsoft.playwright.impl
Class ConsoleMessageImpl
- java.lang.Object
-
- com.microsoft.playwright.impl.ConsoleMessageImpl
-
- All Implemented Interfaces:
ConsoleMessage
public class ConsoleMessageImpl extends java.lang.Object implements ConsoleMessage
-
-
Field Summary
Fields Modifier and Type Field Description private Connectionconnectionprivate com.google.gson.JsonObjectinitializerprivate PageImplpage
-
Constructor Summary
Constructors Constructor Description ConsoleMessageImpl(Connection connection, com.google.gson.JsonObject initializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<JSHandle>args()List of arguments passed to aconsolefunction call.java.lang.Stringlocation()URL of the resource followed by 0-based line and column numbers in the resource formatted asURL:line:column.PageImplpage()The page that produced this console message, if any.java.lang.Stringtext()The text of the console message.java.lang.Stringtype()One of the following values:"log","debug","info","error","warning","dir","dirxml","table","trace","clear","startGroup","startGroupCollapsed","endGroup","assert","profile","profileEnd","count","timeEnd".
-
-
-
Field Detail
-
connection
private final Connection connection
-
page
private PageImpl page
-
initializer
private final com.google.gson.JsonObject initializer
-
-
Constructor Detail
-
ConsoleMessageImpl
public ConsoleMessageImpl(Connection connection, com.google.gson.JsonObject initializer)
-
-
Method Detail
-
type
public java.lang.String type()
Description copied from interface:ConsoleMessageOne of the following values:"log","debug","info","error","warning","dir","dirxml","table","trace","clear","startGroup","startGroupCollapsed","endGroup","assert","profile","profileEnd","count","timeEnd".- Specified by:
typein interfaceConsoleMessage
-
text
public java.lang.String text()
Description copied from interface:ConsoleMessageThe text of the console message.- Specified by:
textin interfaceConsoleMessage
-
args
public java.util.List<JSHandle> args()
Description copied from interface:ConsoleMessageList of arguments passed to aconsolefunction call. See alsoPage.onConsoleMessage().- Specified by:
argsin interfaceConsoleMessage
-
location
public java.lang.String location()
Description copied from interface:ConsoleMessageURL of the resource followed by 0-based line and column numbers in the resource formatted asURL:line:column.- Specified by:
locationin interfaceConsoleMessage
-
page
public PageImpl page()
Description copied from interface:ConsoleMessageThe page that produced this console message, if any.- Specified by:
pagein interfaceConsoleMessage
-
-