Class AdAncestry

java.lang.Object
org.openqa.selenium.devtools.v150.network.model.AdAncestry

@Beta public class AdAncestry extends Object
Encapsulates the script ancestry and the root script filter list rule that caused the resource or element to be labeled as an ad.
  • Constructor Details

  • Method Details

    • getAncestryChain

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

      public Optional<String> getRootScriptFilterlistRule()
      The filter list rule that caused the root (last) script in `ancestryChain` to be tagged as an ad.