We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d244ce commit fa594a8Copy full SHA for fa594a8
dotcom-rendering/playwright/lib/cmp.ts
@@ -16,9 +16,7 @@ const CMP_LAYER2_REJECT_ALL_BUTTON = 'button.sp_choice_type_REJECT_ALL';
16
*/
17
const cmpAcceptAll = async (page: Page, rootIframe?: string): Promise<void> => {
18
const root = rootIframe ? page.frameLocator(rootIframe) : page;
19
- const acceptAllButton = root
20
- .frameLocator(CMP_LAYER1_IFRAME)
21
- .locator(CMP_LAYER1_ACCEPT_ALL_BUTTON);
+ const acceptAllButton = root.locator(CMP_LAYER1_ACCEPT_ALL_BUTTON);
22
await acceptAllButton.click();
23
// wait for consent settings to apply
24
await new Promise((r) => setTimeout(r, 2000));
0 commit comments