struct Protocol::Runtime::RemoteObject

Overview

Mirror object referencing original JavaScript object.

Included Modules

Defined in:

protocol/runtime.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def class_name : String | Nil #

Object class (constructor) name. Specified for object type values only.


[View source]
def custom_preview : CustomPreview | Nil #

[View source]
def description : String | Nil #

String representation of the object.


[View source]
def object_id : RemoteObjectId | Nil #

Unique object identifier (for non-primitive values).


[View source]
def preview : ObjectPreview | Nil #

Preview containing abbreviated property values. Specified for object type values only.


[View source]
def subtype : String | Nil #

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.


[View source]
def type : String #

Object type.


[View source]
def unserializable_value : UnserializableValue | Nil #

Primitive value which can not be JSON-stringified does not have #value, but gets this property.


[View source]
def value : JSON::Any | Nil #

Remote object value in case of primitive values or JSON values (if it was requested).


[View source]
def web_driver_value : WebDriverValue | Nil #

WebDriver BiDi representation of the value.


[View source]