Class RemoteObject
- java.lang.Object
-
- org.openqa.selenium.devtools.v95.runtime.model.RemoteObject
-
public class RemoteObject extends java.lang.Object
Mirror object referencing original JavaScript object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RemoteObject.Subtype
static class
RemoteObject.Type
-
Constructor Summary
Constructors Constructor Description RemoteObject(RemoteObject.Type type, java.util.Optional<RemoteObject.Subtype> subtype, java.util.Optional<java.lang.String> className, java.util.Optional<java.lang.Object> value, java.util.Optional<UnserializableValue> unserializableValue, java.util.Optional<java.lang.String> description, java.util.Optional<RemoteObjectId> objectId, java.util.Optional<ObjectPreview> preview, java.util.Optional<CustomPreview> customPreview)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getClassName()
Object class (constructor) name.java.util.Optional<CustomPreview>
getCustomPreview()
java.util.Optional<java.lang.String>
getDescription()
String representation of the object.java.util.Optional<RemoteObjectId>
getObjectId()
Unique object identifier (for non-primitive values).java.util.Optional<ObjectPreview>
getPreview()
Preview containing abbreviated property values.java.util.Optional<RemoteObject.Subtype>
getSubtype()
Object subtype hint.RemoteObject.Type
getType()
Object type.java.util.Optional<UnserializableValue>
getUnserializableValue()
Primitive value which can not be JSON-stringified does not have `value`, but gets this property.java.util.Optional<java.lang.Object>
getValue()
Remote object value in case of primitive values or JSON values (if it was requested).
-
-
-
Constructor Detail
-
RemoteObject
public RemoteObject(RemoteObject.Type type, java.util.Optional<RemoteObject.Subtype> subtype, java.util.Optional<java.lang.String> className, java.util.Optional<java.lang.Object> value, java.util.Optional<UnserializableValue> unserializableValue, java.util.Optional<java.lang.String> description, java.util.Optional<RemoteObjectId> objectId, java.util.Optional<ObjectPreview> preview, java.util.Optional<CustomPreview> customPreview)
-
-
Method Detail
-
getType
public RemoteObject.Type getType()
Object type.
-
getSubtype
public java.util.Optional<RemoteObject.Subtype> getSubtype()
Object subtype hint. Specified for `object` type values only. NOTE: If you change anything here, make sure to also update `subtype` in `ObjectPreview` and `PropertyPreview` below.
-
getClassName
public java.util.Optional<java.lang.String> getClassName()
Object class (constructor) name. Specified for `object` type values only.
-
getValue
public java.util.Optional<java.lang.Object> getValue()
Remote object value in case of primitive values or JSON values (if it was requested).
-
getUnserializableValue
public java.util.Optional<UnserializableValue> getUnserializableValue()
Primitive value which can not be JSON-stringified does not have `value`, but gets this property.
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
String representation of the object.
-
getObjectId
public java.util.Optional<RemoteObjectId> getObjectId()
Unique object identifier (for non-primitive values).
-
getPreview
@Beta public java.util.Optional<ObjectPreview> getPreview()
Preview containing abbreviated property values. Specified for `object` type values only.
-
getCustomPreview
@Beta public java.util.Optional<CustomPreview> getCustomPreview()
-
-