Class SerializationOptions

java.lang.Object
org.openqa.selenium.devtools.v122.runtime.model.SerializationOptions

public class SerializationOptions extends Object
Represents options for serialization. Overrides `generatePreview` and `returnByValue`.
  • Constructor Details

  • Method Details

    • getSerialization

      public SerializationOptions.Serialization getSerialization()
    • getMaxDepth

      public Optional<Integer> getMaxDepth()
      Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode.
    • getAdditionalParameters

      public Optional<Map<String,Object>> getAdditionalParameters()
      Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM serialization via `maxNodeDepth: integer` and `includeShadowTree: "none" | "open" | "all"`. Values can be only of type string or integer.