Skip to main content
sus.botdocs
  • SEO
  • AI
  • QA
  • Privacy
  • Accessibility
  • Security
  1. Docs
  2. QA
  3. Custom policies
  4. Sample policy: a required element is missing or a forbidden element is present

QA finding

Sample policy: a required element is missing or a forbidden element is present

QA Warning Severity: Medium

Part of the audit Custom policies. Finding id: qa.policyRequiredElement.

What it costs you

The page breaks a rule your organisation set for all its pages. What that costs depends on the rule: a missing legal link, an embed that sets cookies, a component that should have been replaced.

What to do

Add the required element or remove the forbidden one. If most pages fail, the template is the place to change.

What it checks

  • Your page element rule matched
  • Required element missing from page

How to fix it

Bring the page in line with the policy

  1. Open the page and look for the selector in the browser's element inspector.
  2. Add the missing element, or replace the forbidden one with the allowed form.
  3. If pages of one template fail together, change the template.

How to check: Recheck the page: the policy passes.

Thresholds

Thresholds for Sample policy: a required element is missing or a forbidden element is present
NameDefaultMeaning
required_selectorfooter a[href*='privacy']CSS selector that must match at least one element on every page.
forbidden_selectoriframe[src*='youtube.com/embed']CSS selector that must match nothing.
  • All audits
  • About sus.bot
  • Open the app
  • Contact support