Class AdScriptAncestry

java.lang.Object
org.openqa.selenium.devtools.v140.page.model.AdScriptAncestry

@Beta public class AdScriptAncestry extends Object
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 Details

  • Method Details

    • getAncestryChain

      public List<AdScriptId> 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

      public Optional<String> getRootScriptFilterlistRule()
      The filterlist rule that caused the root (last) script in `ancestryChain` to be ad-tagged. Only populated if the rule is available.