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:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
maxDomDepth | number | <optional> | 0 | The maximum depth to serialize the DOM. |
maxObjectDepth | number | null | <optional> | null | The maximum depth to serialize objects. |
includeShadowTree | 'none' | 'open' | 'all' | <optional> | 'none' | The inclusion level of the shadow tree. |
- Source
Throws:
If the
includeShadowTreevalue is not one of 'none', 'open', or 'all'.- Type
- Error