{
  "doc": {
    "id": "ui-coverage/guides/ignore-elements",
    "title": "Ignore elements | Cypress UI Coverage Documentation",
    "description": "Learn how to exclude irrelevant elements from your UI Coverage reports to focus on meaningful insights.",
    "section": "ui-coverage",
    "source_path": "/llm/markdown/ui-coverage/guides/ignore-elements.md",
    "version": "48b03b5502f7aea1d0454750cce208f775403542",
    "updated_at": "2026-05-20T19:00:20.270Z",
    "headings": [
      {
        "id": "ui-coverage/guides/ignore-elements#ignore-elements",
        "text": "Ignore elements",
        "level": 1
      },
      {
        "id": "ui-coverage/guides/ignore-elements#why-ignore-elements",
        "text": "Why ignore elements?",
        "level": 2
      },
      {
        "id": "ui-coverage/guides/ignore-elements#identify-elements-to-ignore",
        "text": "Identify Elements to Ignore",
        "level": 2
      },
      {
        "id": "ui-coverage/guides/ignore-elements#configure-ignored-elements",
        "text": "Configure Ignored Elements",
        "level": 2
      },
      {
        "id": "ui-coverage/guides/ignore-elements#validate-ignored-elements",
        "text": "Validate Ignored Elements",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "ui-coverage/guides/ignore-elements#why-ignore-elements",
      "doc_id": "ui-coverage/guides/ignore-elements",
      "heading": "Why ignore elements?",
      "heading_level": 2,
      "content_markdown": "## Why ignore elements?\n\nIgnoring elements can be beneficial in the following scenarios:\n\n*   **Transitional Elements**: Exclude elements that are still in a loading state or undergoing changes, as they may not represent the final state of the element.\n*   **Third-Party Widgets**: Exclude elements controlled by external libraries or third-party integrations.\n\nBy ignoring irrelevant elements, you can maintain clean and actionable coverage metrics.\n",
      "section": "ui-coverage",
      "anchors": [
        "why-ignore-elements"
      ],
      "path": "/llm/json/chunked/ui-coverage/guides/ignore-elements.json",
      "token_estimate": 84
    },
    {
      "id": "ui-coverage/guides/ignore-elements#identify-elements-to-ignore",
      "doc_id": "ui-coverage/guides/ignore-elements",
      "heading": "Identify Elements to Ignore",
      "heading_level": 2,
      "content_markdown": "## Identify Elements to Ignore\n\nAfter recording your tests to Cypress Cloud, review the UI Coverage reports:\n\n1.  Navigate to the **UI Coverage** tab in your test run.\n2.  Look for elements that consistently appear but don't require testing.\n3.  Note down the selectors, attributes, or patterns for these elements.\n",
      "section": "ui-coverage",
      "anchors": [
        "identify-elements-to-ignore"
      ],
      "path": "/llm/json/chunked/ui-coverage/guides/ignore-elements.json",
      "token_estimate": 67
    },
    {
      "id": "ui-coverage/guides/ignore-elements#configure-ignored-elements",
      "doc_id": "ui-coverage/guides/ignore-elements",
      "heading": "Configure Ignored Elements",
      "heading_level": 2,
      "content_markdown": "## Configure Ignored Elements\n\n[Element Filters](/llm/markdown/ui-coverage/configuration/elementfilters.md) in the **App Quality** configuration are used to exclude elements based on their selectors or attributes. To add or modify the configuration for your project, navigate to the **App Quality** tab in your project settings and add an **elementFilters** configuration.\n\n```\n{  \"elementFilters\": [    {      \"selector\": \"[data-external*]\",      \"include\": false    },    {      \"selector\": \"iframe[title='Login']\",      \"include\": false    },    {      \"selector\": \".rdrDateRangePicker, .rdrDateRangePicker *\",      \"include\": false    }  ]}\n```\n\nTo learn more about the configuration options, refer to the [Element Filters](/llm/markdown/ui-coverage/configuration/elementfilters.md) documentation.\n",
      "section": "ui-coverage",
      "anchors": [
        "configure-ignored-elements"
      ],
      "path": "/llm/json/chunked/ui-coverage/guides/ignore-elements.json",
      "token_estimate": 113
    },
    {
      "id": "ui-coverage/guides/ignore-elements#validate-ignored-elements",
      "doc_id": "ui-coverage/guides/ignore-elements",
      "heading": "Validate Ignored Elements",
      "heading_level": 2,
      "content_markdown": "## Validate Ignored Elements\n\nAfter updating the configuration, record your tests again and review the UI Coverage report. The ignored elements should no longer appear in the coverage reports, streamlining the data and focusing on the critical areas of your application.\n\nIf new unnecessary elements appear in future reports, update your filters accordingly to keep reports clean and actionable.\n",
      "section": "ui-coverage",
      "anchors": [
        "validate-ignored-elements"
      ],
      "path": "/llm/json/chunked/ui-coverage/guides/ignore-elements.json",
      "token_estimate": 79
    }
  ]
}