diff --git a/rules/autoconsent/ens-modal.json b/rules/autoconsent/ens-modal.json index 7c37ed14..5c27bba3 100644 --- a/rules/autoconsent/ens-modal.json +++ b/rules/autoconsent/ens-modal.json @@ -2,11 +2,13 @@ "name": "Ensighten ensModal", "prehideSelectors": [".ensModal"], "detectCmp": [{ "exists": ".ensModal" }], - "detectPopup": [{ "visible": ".ensModal" }], + "detectPopup": [{ "visible": "#ensModalWrapper[style*=block]" }], "optIn": [ { "waitForThenClick": "#modalAcceptButton" } ], "optOut": [ + { "wait": 500 }, + { "visible": "#ensModalWrapper[style*=block]" }, { "waitForThenClick": ".ensCheckbox:checked", "all": true }, { "waitForThenClick": "#ensSave" } ] diff --git a/rules/autoconsent/ens-notify-banner.json b/rules/autoconsent/ens-notify-banner.json index cd456852..6dff3c46 100644 --- a/rules/autoconsent/ens-notify-banner.json +++ b/rules/autoconsent/ens-notify-banner.json @@ -2,11 +2,13 @@ "name": "Ensighten ensNotifyBanner", "prehideSelectors": ["#ensNotifyBanner"], "detectCmp": [{ "exists": "#ensNotifyBanner" }], - "detectPopup": [{ "visible": "#ensNotifyBanner" }], + "detectPopup": [{ "visible": "#ensNotifyBanner[style*=block]" }], "optIn": [ { "waitForThenClick": "#ensCloseBanner" } ], "optOut": [ - { "waitForThenClick": "#ensRejectAll,#rejectAll,#ensRejectBanner" } + { "wait": 500 }, + { "visible": "#ensNotifyBanner[style*=block]" }, + { "waitForThenClick": "#ensRejectAll,#rejectAll,#ensRejectBanner,.rejectAll" } ] }