Class AdScriptAncestry
java.lang.Object
org.openqa.selenium.devtools.v140.page.model.AdScriptAncestry
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.
-
Constructor Summary
ConstructorsConstructorDescriptionAdScriptAncestry
(List<AdScriptId> ancestryChain, Optional<String> rootScriptFilterlistRule) -
Method Summary
Modifier and TypeMethodDescriptionA chain of `AdScriptId`s representing the ancestry of an ad script that led to the creation of a frame.The filterlist rule that caused the root (last) script in `ancestryChain` to be ad-tagged.
-
Constructor Details
-
AdScriptAncestry
-
-
Method Details
-
getAncestryChain
A chain of `AdScriptId`s 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. -
getRootScriptFilterlistRule
The filterlist rule that caused the root (last) script in `ancestryChain` to be ad-tagged. Only populated if the rule is available.
-