SerializationOptions

Represents serialization options. Described in https://w3c.github.io/webdriver-bidi/#type-script-SerializationOptions.

Constructor

new SerializationOptions(maxDomDepthopt, maxObjectDepthopt, includeShadowTreeopt)

Constructs a new instance of SerializationOptions.

Parameters:
NameTypeAttributesDefaultDescription
maxDomDepthnumber<optional>
0

The maximum depth to serialize the DOM.

maxObjectDepthnumber | null<optional>
null

The maximum depth to serialize objects.

includeShadowTree'none' | 'open' | 'all'<optional>
'none'

The inclusion level of the shadow tree.

Throws:

If the includeShadowTree value is not one of 'none', 'open', or 'all'.

Type
Error