Skip to content

Commit

Permalink
Fix popup showing after opt-out complete on stackoverflow.com (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammacbeth authored Nov 10, 2022
1 parent 64db1b7 commit 86f8a0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cmps/onetrust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default class Onetrust extends AutoConsentCMPBase {
await wait(1000);
click("#onetrust-consent-sdk input.category-switch-handler:checked,.js-editor-toggle-state:checked", true); // optional step

await wait(1000);
await waitForElement(".save-preference-btn-handler,.js-consent-save", 2000);
click(".save-preference-btn-handler,.js-consent-save");

Expand Down

0 comments on commit 86f8a0d

Please sign in to comment.