Class CustomPreview
- java.lang.Object
-
- org.openqa.selenium.devtools.v100.runtime.model.CustomPreview
-
@Beta public class CustomPreview extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CustomPreview(java.lang.String header, java.util.Optional<RemoteObjectId> bodyGetterId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<RemoteObjectId>
getBodyGetterId()
If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call.java.lang.String
getHeader()
The JSON-stringified result of formatter.header(object, config) call.
-
-
-
Constructor Detail
-
CustomPreview
public CustomPreview(java.lang.String header, java.util.Optional<RemoteObjectId> bodyGetterId)
-
-
Method Detail
-
getHeader
public java.lang.String getHeader()
The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject.
-
getBodyGetterId
public java.util.Optional<RemoteObjectId> getBodyGetterId()
If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. The result value is json ML array.
-
-