Table of Contents

Class AdAncestry

Namespace
OpenQA.Selenium.DevTools.V148.Network
Assembly
Selenium.WebDriver.dll

Encapsulates the script ancestry and the root script filter list rule that caused the resource or element to be labeled as an ad.

public sealed class AdAncestry
Inheritance
AdAncestry
Inherited Members

Properties

AncestryChain

A chain of AdScriptIdentifiers representing the ancestry of an ad script that led to the creation of a resource or element. The chain is ordered from the script itself (lowest level) up to its root ancestor that was flagged by a filter list.

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

Property Value

AdScriptIdentifier[]

RootScriptFilterlistRule

The filter list rule that caused the root (last) script in ancestryChain to be tagged as an ad.

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

Property Value

string