Table of Contents

Class AdScriptAncestry

Namespace
OpenQA.Selenium.DevTools.V147.Page
Assembly
Selenium.WebDriver.dll

Encapsulates the script ancestry and the root script filterlist rule that caused the frame to be labelled as an ad. Only created when ancestryChain is not empty.

public sealed class AdScriptAncestry
Inheritance
AdScriptAncestry
Inherited Members

Properties

AncestryChain

A chain of AdScriptIds representing the ancestry of an ad script that led to the creation of a frame. The chain is ordered from the script itself (lower level) up to its root ancestor that was flagged by filterlist.

[JsonPropertyName("ancestryChain")]
public AdScriptId[] AncestryChain { get; set; }

Property Value

AdScriptId[]

RootScriptFilterlistRule

The filterlist rule that caused the root (last) script in ancestryChain to be ad-tagged. Only populated if the rule is available.

[JsonPropertyName("rootScriptFilterlistRule")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? RootScriptFilterlistRule { get; set; }

Property Value

string