Fix Aetna Privacy Policy selectors#4090
Closed
jw409 wants to merge 1 commit into
Closed
Conversation
The Aetna privacy page has been restructured from a flat layout with `.component.container` and `.bodytext + .accordion + .text` sections to a tabbed AEM layout with content in `[role="tabpanel"]` panels under `#content__main > .responsivegrid`. Changes: - Replace broken selectors with `#content__main > .responsivegrid` - Add `remove` for breadcrumb and hero banner noise - Enable `executeClientScripts` to bypass Incapsula bot protection
MattiSG
requested changes
Apr 7, 2026
| ], | ||
| "remove": [ | ||
| ".breadcrumb-wrapper", | ||
| ".pageherobanner" |
Member
There was a problem hiding this comment.
These selectors are not included in the select part, it makes no sense to remove them.
Member
|
LLM spam. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1014
What changed
The Aetna privacy page (
/legal-notices/privacy/web-privacy.html) was restructured from a flat layout to a tabbed AEM (Adobe Experience Manager) layout. Two of the three original CSS selectors no longer match any elements:.responsivegrid .body__copy.component.container.bodytext + .accordion + .textThe privacy content is now organized into three tab panels ("Web and mobile", "Text messages", "Notices by plan") inside
#content__main > .responsivegrid.Changes
#content__main > .responsivegrid, which captures all three tab panels of privacy contentremovefor.breadcrumb-wrapperand.pageherobannerto exclude navigation breadcrumbs and the hero banner from the tracked contentexecuteClientScripts: truebecause the site uses Incapsula bot protection, which serves a challenge page to non-browser HTTP clients — the OTA engine needs a headless browser to fetch the actual contentVerification
Tested with Playwright against the live page. The new selector matches 1 element containing ~67,000 characters of privacy policy text across all three tab sections.
🇺🇸 Reid Wiseman — Commander
🇺🇸 Victor Glover — Pilot
🇺🇸 Christina Koch — Mission Specialist
🇨🇦 Jeremy Hansen — Mission Specialist
Artemis II. Privacy is a human right — on this planet and beyond it.