Class AdAncestry
java.lang.Object
org.openqa.selenium.devtools.v148.network.model.AdAncestry
Encapsulates the script ancestry and the root script filter list rule that
caused the resource or element to be labeled as an ad.
-
Constructor Summary
ConstructorsConstructorDescriptionAdAncestry(List<AdScriptIdentifier> ancestryChain, Optional<String> rootScriptFilterlistRule) -
Method Summary
Modifier and TypeMethodDescriptionA chain of `AdScriptIdentifier`s representing the ancestry of an ad script that led to the creation of a resource or element.The filter list rule that caused the root (last) script in `ancestryChain` to be tagged as an ad.
-
Constructor Details
-
AdAncestry
public AdAncestry(List<AdScriptIdentifier> ancestryChain, Optional<String> rootScriptFilterlistRule)
-
-
Method Details
-
getAncestryChain
A chain of `AdScriptIdentifier`s 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. -
getRootScriptFilterlistRule
The filter list rule that caused the root (last) script in `ancestryChain` to be tagged as an ad.
-