java.lang.Object
org.openqa.selenium.devtools.v148.network.model.AdProvenance

@Beta public class AdProvenance extends Object
Represents the provenance of an ad resource or element. Only one of `filterlistRule` or `adScriptAncestry` can be set. If `filterlistRule` is provided, the resource URL directly matches a filter list rule. If `adScriptAncestry` is provided, an ad script initiated the resource fetch or appended the element to the DOM. If neither is provided, the entity is known to be an ad, but provenance tracking information is unavailable.
  • Constructor Details

  • Method Details

    • getFilterlistRule

      public Optional<String> getFilterlistRule()
      The filterlist rule that matched, if any.
    • getAdScriptAncestry

      public Optional<AdAncestry> getAdScriptAncestry()
      The script ancestry that created the ad, if any.