Class ConsoleAPICalled
- java.lang.Object
-
- org.openqa.selenium.devtools.runtime.model.ConsoleAPICalled
-
public class ConsoleAPICalled extends java.lang.Object
Issued when console API was called.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConsoleAPICalled.Type
-
Constructor Summary
Constructors Constructor Description ConsoleAPICalled(ConsoleAPICalled.Type type, java.util.List<RemoteObject> args, ExecutionContextId executionContextId, Timestamp timestamp, StackTrace stackTrace, java.lang.String context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<RemoteObject>
getArgs()
Call arguments.java.lang.String
getContext()
Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.ExecutionContextId
getExecutionContextId()
Identifier of the context where the call was made.StackTrace
getStackTrace()
Stack trace captured when the call was made.Timestamp
getTimestamp()
Call timestamp.ConsoleAPICalled.Type
getType()
Type of the call.
-
-
-
Constructor Detail
-
ConsoleAPICalled
public ConsoleAPICalled(ConsoleAPICalled.Type type, java.util.List<RemoteObject> args, ExecutionContextId executionContextId, Timestamp timestamp, StackTrace stackTrace, java.lang.String context)
-
-
Method Detail
-
getType
public ConsoleAPICalled.Type getType()
Type of the call.
-
getArgs
public java.util.List<RemoteObject> getArgs()
Call arguments.
-
getExecutionContextId
public ExecutionContextId getExecutionContextId()
Identifier of the context where the call was made.
-
getTimestamp
public Timestamp getTimestamp()
Call timestamp.
-
getStackTrace
public StackTrace getStackTrace()
Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field.
-
getContext
@Beta public java.lang.String getContext()
Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
-
-