@duckduckgo/autoconsent 6.0.0 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist/addon-firefox/content.bundle.js +13 -13
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +29 -0
- package/dist/addon-mv3/content.bundle.js +13 -13
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +29 -0
- package/dist/autoconsent.cjs.js +13 -13
- package/dist/autoconsent.esm.js +13 -13
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/cmps/trustarc-frame.ts +3 -3
- package/package.json +4 -4
- package/rules/autoconsent/activobank-pt.json +19 -0
- package/rules/rules.json +29 -0
- package/tests/activobank-pt.spec.ts +6 -0
- package/tests/testcmp-banner.spec.ts +1 -1
- package/tests/testcmp.spec.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
# v6.1.1 (Thu Sep 14 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Update test site domain [#252](https://github.com/duckduckgo/autoconsent/pull/252) ([@sammacbeth](https://github.com/sammacbeth))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v6.1.0 (Tue Sep 12 2023)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- Bump web-ext from 7.6.2 to 7.7.0 [#249](https://github.com/duckduckgo/autoconsent/pull/249) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
18
|
+
|
|
19
|
+
#### 🐛 Bug Fix
|
|
20
|
+
|
|
21
|
+
- Add rule for activobank.pt [#244](https://github.com/duckduckgo/autoconsent/pull/244) ([@muodov](https://github.com/muodov))
|
|
22
|
+
- Update trustarc-frame.ts [#235](https://github.com/duckduckgo/autoconsent/pull/235) ([@hyebahi](https://github.com/hyebahi))
|
|
23
|
+
|
|
24
|
+
#### 🔩 Dependency Updates
|
|
25
|
+
|
|
26
|
+
- Bump @types/chrome from 0.0.243 to 0.0.245 [#245](https://github.com/duckduckgo/autoconsent/pull/245) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
27
|
+
- Bump tslib from 2.6.1 to 2.6.2 [#242](https://github.com/duckduckgo/autoconsent/pull/242) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
28
|
+
- Bump chai from 4.3.7 to 4.3.8 [#241](https://github.com/duckduckgo/autoconsent/pull/241) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
29
|
+
- Bump @playwright/test from 1.36.2 to 1.37.1 [#239](https://github.com/duckduckgo/autoconsent/pull/239) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
30
|
+
- Bump esbuild from 0.18.11 to 0.19.2 [#234](https://github.com/duckduckgo/autoconsent/pull/234) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
31
|
+
- Bump @puppeteer/replay from 2.13.2 to 2.13.3 [#222](https://github.com/duckduckgo/autoconsent/pull/222) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
32
|
+
- Bump @types/chrome from 0.0.242 to 0.0.243 [#221](https://github.com/duckduckgo/autoconsent/pull/221) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
33
|
+
- Bump auto from 10.46.0 to 11.0.1 [#233](https://github.com/duckduckgo/autoconsent/pull/233) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
34
|
+
|
|
35
|
+
#### Authors: 3
|
|
36
|
+
|
|
37
|
+
- [@dependabot[bot]](https://github.com/dependabot[bot])
|
|
38
|
+
- [@hyebahi](https://github.com/hyebahi)
|
|
39
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
1
43
|
# v6.0.0 (Tue Aug 22 2023)
|
|
2
44
|
|
|
3
45
|
#### 💥 Breaking Change
|
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
interval
|
|
503
503
|
);
|
|
504
504
|
}
|
|
505
|
-
async function
|
|
505
|
+
async function waitForThenClick2(selector, timeout = 1e4, all = false) {
|
|
506
506
|
await waitForElement(selector, timeout);
|
|
507
507
|
return click(selector, all);
|
|
508
508
|
}
|
|
@@ -889,7 +889,7 @@
|
|
|
889
889
|
results.push(click(rule.click, rule.all));
|
|
890
890
|
}
|
|
891
891
|
if (rule.waitForThenClick) {
|
|
892
|
-
results.push(
|
|
892
|
+
results.push(waitForThenClick2(rule.waitForThenClick, rule.timeout, rule.all));
|
|
893
893
|
}
|
|
894
894
|
if (rule.wait) {
|
|
895
895
|
results.push(wait(rule.wait));
|
|
@@ -1140,17 +1140,17 @@
|
|
|
1140
1140
|
}
|
|
1141
1141
|
if (click("#catDetails0")) {
|
|
1142
1142
|
click(".submit");
|
|
1143
|
+
waitForThenClick("#gwt-debug-close_id", 5e3);
|
|
1143
1144
|
return true;
|
|
1144
1145
|
}
|
|
1145
1146
|
if (click(".required")) {
|
|
1147
|
+
waitForThenClick("#gwt-debug-close_id", 5e3);
|
|
1146
1148
|
return true;
|
|
1147
1149
|
}
|
|
1148
1150
|
await this.navigateToSettings();
|
|
1149
1151
|
click(".switch span:nth-child(1):not(.active)", true);
|
|
1150
1152
|
click(".submit");
|
|
1151
|
-
|
|
1152
|
-
click("#gwt-debug-close_id");
|
|
1153
|
-
});
|
|
1153
|
+
waitForThenClick("#gwt-debug-close_id", 3e5);
|
|
1154
1154
|
return true;
|
|
1155
1155
|
}
|
|
1156
1156
|
async optIn() {
|
|
@@ -1609,7 +1609,7 @@
|
|
|
1609
1609
|
return false;
|
|
1610
1610
|
}
|
|
1611
1611
|
async optIn() {
|
|
1612
|
-
return
|
|
1612
|
+
return waitForThenClick2(".unic #unic-agree");
|
|
1613
1613
|
}
|
|
1614
1614
|
async test() {
|
|
1615
1615
|
await wait(1e3);
|
|
@@ -1641,14 +1641,14 @@
|
|
|
1641
1641
|
return elementVisible(".cmp-root .cmp-receptacle", "any");
|
|
1642
1642
|
}
|
|
1643
1643
|
async optOut() {
|
|
1644
|
-
if (!await
|
|
1644
|
+
if (!await waitForThenClick2(".cmp-main-button:not(.cmp-main-button--primary)")) {
|
|
1645
1645
|
return false;
|
|
1646
1646
|
}
|
|
1647
1647
|
if (!await waitForElement(".cmp-view-tab-tabs")) {
|
|
1648
1648
|
return false;
|
|
1649
1649
|
}
|
|
1650
|
-
await
|
|
1651
|
-
await
|
|
1650
|
+
await waitForThenClick2(".cmp-view-tab-tabs > :first-child");
|
|
1651
|
+
await waitForThenClick2(".cmp-view-tab-tabs > .cmp-view-tab--active:first-child");
|
|
1652
1652
|
for (const item of Array.from(document.querySelectorAll(".cmp-accordion-item"))) {
|
|
1653
1653
|
item.querySelector(".cmp-accordion-item-title").click();
|
|
1654
1654
|
await waitFor(() => !!item.querySelector(".cmp-accordion-item-content.cmp-active"), 10, 50);
|
|
@@ -1660,7 +1660,7 @@
|
|
|
1660
1660
|
return true;
|
|
1661
1661
|
}
|
|
1662
1662
|
async optIn() {
|
|
1663
|
-
return
|
|
1663
|
+
return waitForThenClick2(".cmp-main-button.cmp-main-button--primary");
|
|
1664
1664
|
}
|
|
1665
1665
|
async test() {
|
|
1666
1666
|
return document.cookie.includes("cmp-data=0");
|
|
@@ -1759,15 +1759,15 @@
|
|
|
1759
1759
|
return elementVisible("div[data-testid=main-cookies-banner-container", "any");
|
|
1760
1760
|
}
|
|
1761
1761
|
async optOut() {
|
|
1762
|
-
await
|
|
1762
|
+
await waitForThenClick2("div[data-testid=main-cookies-banner-container] button._snbhip0");
|
|
1763
1763
|
let check;
|
|
1764
1764
|
while (check = document.querySelector("[data-testid=modal-container] button[aria-checked=true]:not([disabled])")) {
|
|
1765
1765
|
check.click();
|
|
1766
1766
|
}
|
|
1767
|
-
return
|
|
1767
|
+
return waitForThenClick2("button[data-testid=save-btn]");
|
|
1768
1768
|
}
|
|
1769
1769
|
async optIn() {
|
|
1770
|
-
return
|
|
1770
|
+
return waitForThenClick2("div[data-testid=main-cookies-banner-container] button._148dgdpk");
|
|
1771
1771
|
}
|
|
1772
1772
|
async test() {
|
|
1773
1773
|
return await waitFor(
|
|
@@ -60,6 +60,35 @@
|
|
|
60
60
|
}
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"name": "activobank.pt",
|
|
65
|
+
"runContext": {
|
|
66
|
+
"urlPattern": "^https://(www\\.)?activobank\\.pt"
|
|
67
|
+
},
|
|
68
|
+
"prehideSelectors": [
|
|
69
|
+
"aside#cookies,.overlay-cookies"
|
|
70
|
+
],
|
|
71
|
+
"detectCmp": [
|
|
72
|
+
{
|
|
73
|
+
"exists": "#cookies .cookies-btn"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"detectPopup": [
|
|
77
|
+
{
|
|
78
|
+
"visible": "#cookies #submitCookies"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"optIn": [
|
|
82
|
+
{
|
|
83
|
+
"waitForThenClick": "#cookies #submitCookies"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"optOut": [
|
|
87
|
+
{
|
|
88
|
+
"waitForThenClick": "#cookies #rejectCookies"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
63
92
|
{
|
|
64
93
|
"name": "Adroll",
|
|
65
94
|
"prehideSelectors": [
|
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
interval
|
|
503
503
|
);
|
|
504
504
|
}
|
|
505
|
-
async function
|
|
505
|
+
async function waitForThenClick2(selector, timeout = 1e4, all = false) {
|
|
506
506
|
await waitForElement(selector, timeout);
|
|
507
507
|
return click(selector, all);
|
|
508
508
|
}
|
|
@@ -889,7 +889,7 @@
|
|
|
889
889
|
results.push(click(rule.click, rule.all));
|
|
890
890
|
}
|
|
891
891
|
if (rule.waitForThenClick) {
|
|
892
|
-
results.push(
|
|
892
|
+
results.push(waitForThenClick2(rule.waitForThenClick, rule.timeout, rule.all));
|
|
893
893
|
}
|
|
894
894
|
if (rule.wait) {
|
|
895
895
|
results.push(wait(rule.wait));
|
|
@@ -1140,17 +1140,17 @@
|
|
|
1140
1140
|
}
|
|
1141
1141
|
if (click("#catDetails0")) {
|
|
1142
1142
|
click(".submit");
|
|
1143
|
+
waitForThenClick("#gwt-debug-close_id", 5e3);
|
|
1143
1144
|
return true;
|
|
1144
1145
|
}
|
|
1145
1146
|
if (click(".required")) {
|
|
1147
|
+
waitForThenClick("#gwt-debug-close_id", 5e3);
|
|
1146
1148
|
return true;
|
|
1147
1149
|
}
|
|
1148
1150
|
await this.navigateToSettings();
|
|
1149
1151
|
click(".switch span:nth-child(1):not(.active)", true);
|
|
1150
1152
|
click(".submit");
|
|
1151
|
-
|
|
1152
|
-
click("#gwt-debug-close_id");
|
|
1153
|
-
});
|
|
1153
|
+
waitForThenClick("#gwt-debug-close_id", 3e5);
|
|
1154
1154
|
return true;
|
|
1155
1155
|
}
|
|
1156
1156
|
async optIn() {
|
|
@@ -1609,7 +1609,7 @@
|
|
|
1609
1609
|
return false;
|
|
1610
1610
|
}
|
|
1611
1611
|
async optIn() {
|
|
1612
|
-
return
|
|
1612
|
+
return waitForThenClick2(".unic #unic-agree");
|
|
1613
1613
|
}
|
|
1614
1614
|
async test() {
|
|
1615
1615
|
await wait(1e3);
|
|
@@ -1641,14 +1641,14 @@
|
|
|
1641
1641
|
return elementVisible(".cmp-root .cmp-receptacle", "any");
|
|
1642
1642
|
}
|
|
1643
1643
|
async optOut() {
|
|
1644
|
-
if (!await
|
|
1644
|
+
if (!await waitForThenClick2(".cmp-main-button:not(.cmp-main-button--primary)")) {
|
|
1645
1645
|
return false;
|
|
1646
1646
|
}
|
|
1647
1647
|
if (!await waitForElement(".cmp-view-tab-tabs")) {
|
|
1648
1648
|
return false;
|
|
1649
1649
|
}
|
|
1650
|
-
await
|
|
1651
|
-
await
|
|
1650
|
+
await waitForThenClick2(".cmp-view-tab-tabs > :first-child");
|
|
1651
|
+
await waitForThenClick2(".cmp-view-tab-tabs > .cmp-view-tab--active:first-child");
|
|
1652
1652
|
for (const item of Array.from(document.querySelectorAll(".cmp-accordion-item"))) {
|
|
1653
1653
|
item.querySelector(".cmp-accordion-item-title").click();
|
|
1654
1654
|
await waitFor(() => !!item.querySelector(".cmp-accordion-item-content.cmp-active"), 10, 50);
|
|
@@ -1660,7 +1660,7 @@
|
|
|
1660
1660
|
return true;
|
|
1661
1661
|
}
|
|
1662
1662
|
async optIn() {
|
|
1663
|
-
return
|
|
1663
|
+
return waitForThenClick2(".cmp-main-button.cmp-main-button--primary");
|
|
1664
1664
|
}
|
|
1665
1665
|
async test() {
|
|
1666
1666
|
return document.cookie.includes("cmp-data=0");
|
|
@@ -1759,15 +1759,15 @@
|
|
|
1759
1759
|
return elementVisible("div[data-testid=main-cookies-banner-container", "any");
|
|
1760
1760
|
}
|
|
1761
1761
|
async optOut() {
|
|
1762
|
-
await
|
|
1762
|
+
await waitForThenClick2("div[data-testid=main-cookies-banner-container] button._snbhip0");
|
|
1763
1763
|
let check;
|
|
1764
1764
|
while (check = document.querySelector("[data-testid=modal-container] button[aria-checked=true]:not([disabled])")) {
|
|
1765
1765
|
check.click();
|
|
1766
1766
|
}
|
|
1767
|
-
return
|
|
1767
|
+
return waitForThenClick2("button[data-testid=save-btn]");
|
|
1768
1768
|
}
|
|
1769
1769
|
async optIn() {
|
|
1770
|
-
return
|
|
1770
|
+
return waitForThenClick2("div[data-testid=main-cookies-banner-container] button._148dgdpk");
|
|
1771
1771
|
}
|
|
1772
1772
|
async test() {
|
|
1773
1773
|
return await waitFor(
|
|
@@ -60,6 +60,35 @@
|
|
|
60
60
|
}
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"name": "activobank.pt",
|
|
65
|
+
"runContext": {
|
|
66
|
+
"urlPattern": "^https://(www\\.)?activobank\\.pt"
|
|
67
|
+
},
|
|
68
|
+
"prehideSelectors": [
|
|
69
|
+
"aside#cookies,.overlay-cookies"
|
|
70
|
+
],
|
|
71
|
+
"detectCmp": [
|
|
72
|
+
{
|
|
73
|
+
"exists": "#cookies .cookies-btn"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"detectPopup": [
|
|
77
|
+
{
|
|
78
|
+
"visible": "#cookies #submitCookies"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"optIn": [
|
|
82
|
+
{
|
|
83
|
+
"waitForThenClick": "#cookies #submitCookies"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"optOut": [
|
|
87
|
+
{
|
|
88
|
+
"waitForThenClick": "#cookies #rejectCookies"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
63
92
|
{
|
|
64
93
|
"name": "Adroll",
|
|
65
94
|
"prehideSelectors": [
|
package/dist/autoconsent.cjs.js
CHANGED
|
@@ -525,7 +525,7 @@ function waitForVisible(selector, timeout = 1e4, check = "any") {
|
|
|
525
525
|
interval
|
|
526
526
|
);
|
|
527
527
|
}
|
|
528
|
-
async function
|
|
528
|
+
async function waitForThenClick2(selector, timeout = 1e4, all = false) {
|
|
529
529
|
await waitForElement(selector, timeout);
|
|
530
530
|
return click(selector, all);
|
|
531
531
|
}
|
|
@@ -912,7 +912,7 @@ var AutoConsentCMP = class extends AutoConsentCMPBase {
|
|
|
912
912
|
results.push(click(rule.click, rule.all));
|
|
913
913
|
}
|
|
914
914
|
if (rule.waitForThenClick) {
|
|
915
|
-
results.push(
|
|
915
|
+
results.push(waitForThenClick2(rule.waitForThenClick, rule.timeout, rule.all));
|
|
916
916
|
}
|
|
917
917
|
if (rule.wait) {
|
|
918
918
|
results.push(wait(rule.wait));
|
|
@@ -1163,17 +1163,17 @@ var TrustArcFrame = class extends AutoConsentCMPBase {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
if (click("#catDetails0")) {
|
|
1165
1165
|
click(".submit");
|
|
1166
|
+
waitForThenClick("#gwt-debug-close_id", 5e3);
|
|
1166
1167
|
return true;
|
|
1167
1168
|
}
|
|
1168
1169
|
if (click(".required")) {
|
|
1170
|
+
waitForThenClick("#gwt-debug-close_id", 5e3);
|
|
1169
1171
|
return true;
|
|
1170
1172
|
}
|
|
1171
1173
|
await this.navigateToSettings();
|
|
1172
1174
|
click(".switch span:nth-child(1):not(.active)", true);
|
|
1173
1175
|
click(".submit");
|
|
1174
|
-
|
|
1175
|
-
click("#gwt-debug-close_id");
|
|
1176
|
-
});
|
|
1176
|
+
waitForThenClick("#gwt-debug-close_id", 3e5);
|
|
1177
1177
|
return true;
|
|
1178
1178
|
}
|
|
1179
1179
|
async optIn() {
|
|
@@ -1632,7 +1632,7 @@ var Uniconsent = class extends AutoConsentCMPBase {
|
|
|
1632
1632
|
return false;
|
|
1633
1633
|
}
|
|
1634
1634
|
async optIn() {
|
|
1635
|
-
return
|
|
1635
|
+
return waitForThenClick2(".unic #unic-agree");
|
|
1636
1636
|
}
|
|
1637
1637
|
async test() {
|
|
1638
1638
|
await wait(1e3);
|
|
@@ -1664,14 +1664,14 @@ var Conversant = class extends AutoConsentCMPBase {
|
|
|
1664
1664
|
return elementVisible(".cmp-root .cmp-receptacle", "any");
|
|
1665
1665
|
}
|
|
1666
1666
|
async optOut() {
|
|
1667
|
-
if (!await
|
|
1667
|
+
if (!await waitForThenClick2(".cmp-main-button:not(.cmp-main-button--primary)")) {
|
|
1668
1668
|
return false;
|
|
1669
1669
|
}
|
|
1670
1670
|
if (!await waitForElement(".cmp-view-tab-tabs")) {
|
|
1671
1671
|
return false;
|
|
1672
1672
|
}
|
|
1673
|
-
await
|
|
1674
|
-
await
|
|
1673
|
+
await waitForThenClick2(".cmp-view-tab-tabs > :first-child");
|
|
1674
|
+
await waitForThenClick2(".cmp-view-tab-tabs > .cmp-view-tab--active:first-child");
|
|
1675
1675
|
for (const item of Array.from(document.querySelectorAll(".cmp-accordion-item"))) {
|
|
1676
1676
|
item.querySelector(".cmp-accordion-item-title").click();
|
|
1677
1677
|
await waitFor(() => !!item.querySelector(".cmp-accordion-item-content.cmp-active"), 10, 50);
|
|
@@ -1683,7 +1683,7 @@ var Conversant = class extends AutoConsentCMPBase {
|
|
|
1683
1683
|
return true;
|
|
1684
1684
|
}
|
|
1685
1685
|
async optIn() {
|
|
1686
|
-
return
|
|
1686
|
+
return waitForThenClick2(".cmp-main-button.cmp-main-button--primary");
|
|
1687
1687
|
}
|
|
1688
1688
|
async test() {
|
|
1689
1689
|
return document.cookie.includes("cmp-data=0");
|
|
@@ -1782,15 +1782,15 @@ var Airbnb = class extends AutoConsentCMPBase {
|
|
|
1782
1782
|
return elementVisible("div[data-testid=main-cookies-banner-container", "any");
|
|
1783
1783
|
}
|
|
1784
1784
|
async optOut() {
|
|
1785
|
-
await
|
|
1785
|
+
await waitForThenClick2("div[data-testid=main-cookies-banner-container] button._snbhip0");
|
|
1786
1786
|
let check;
|
|
1787
1787
|
while (check = document.querySelector("[data-testid=modal-container] button[aria-checked=true]:not([disabled])")) {
|
|
1788
1788
|
check.click();
|
|
1789
1789
|
}
|
|
1790
|
-
return
|
|
1790
|
+
return waitForThenClick2("button[data-testid=save-btn]");
|
|
1791
1791
|
}
|
|
1792
1792
|
async optIn() {
|
|
1793
|
-
return
|
|
1793
|
+
return waitForThenClick2("div[data-testid=main-cookies-banner-container] button._148dgdpk");
|
|
1794
1794
|
}
|
|
1795
1795
|
async test() {
|
|
1796
1796
|
return await waitFor(
|
package/dist/autoconsent.esm.js
CHANGED
|
@@ -500,7 +500,7 @@ function waitForVisible(selector, timeout = 1e4, check = "any") {
|
|
|
500
500
|
interval
|
|
501
501
|
);
|
|
502
502
|
}
|
|
503
|
-
async function
|
|
503
|
+
async function waitForThenClick2(selector, timeout = 1e4, all = false) {
|
|
504
504
|
await waitForElement(selector, timeout);
|
|
505
505
|
return click(selector, all);
|
|
506
506
|
}
|
|
@@ -887,7 +887,7 @@ var AutoConsentCMP = class extends AutoConsentCMPBase {
|
|
|
887
887
|
results.push(click(rule.click, rule.all));
|
|
888
888
|
}
|
|
889
889
|
if (rule.waitForThenClick) {
|
|
890
|
-
results.push(
|
|
890
|
+
results.push(waitForThenClick2(rule.waitForThenClick, rule.timeout, rule.all));
|
|
891
891
|
}
|
|
892
892
|
if (rule.wait) {
|
|
893
893
|
results.push(wait(rule.wait));
|
|
@@ -1138,17 +1138,17 @@ var TrustArcFrame = class extends AutoConsentCMPBase {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
if (click("#catDetails0")) {
|
|
1140
1140
|
click(".submit");
|
|
1141
|
+
waitForThenClick("#gwt-debug-close_id", 5e3);
|
|
1141
1142
|
return true;
|
|
1142
1143
|
}
|
|
1143
1144
|
if (click(".required")) {
|
|
1145
|
+
waitForThenClick("#gwt-debug-close_id", 5e3);
|
|
1144
1146
|
return true;
|
|
1145
1147
|
}
|
|
1146
1148
|
await this.navigateToSettings();
|
|
1147
1149
|
click(".switch span:nth-child(1):not(.active)", true);
|
|
1148
1150
|
click(".submit");
|
|
1149
|
-
|
|
1150
|
-
click("#gwt-debug-close_id");
|
|
1151
|
-
});
|
|
1151
|
+
waitForThenClick("#gwt-debug-close_id", 3e5);
|
|
1152
1152
|
return true;
|
|
1153
1153
|
}
|
|
1154
1154
|
async optIn() {
|
|
@@ -1607,7 +1607,7 @@ var Uniconsent = class extends AutoConsentCMPBase {
|
|
|
1607
1607
|
return false;
|
|
1608
1608
|
}
|
|
1609
1609
|
async optIn() {
|
|
1610
|
-
return
|
|
1610
|
+
return waitForThenClick2(".unic #unic-agree");
|
|
1611
1611
|
}
|
|
1612
1612
|
async test() {
|
|
1613
1613
|
await wait(1e3);
|
|
@@ -1639,14 +1639,14 @@ var Conversant = class extends AutoConsentCMPBase {
|
|
|
1639
1639
|
return elementVisible(".cmp-root .cmp-receptacle", "any");
|
|
1640
1640
|
}
|
|
1641
1641
|
async optOut() {
|
|
1642
|
-
if (!await
|
|
1642
|
+
if (!await waitForThenClick2(".cmp-main-button:not(.cmp-main-button--primary)")) {
|
|
1643
1643
|
return false;
|
|
1644
1644
|
}
|
|
1645
1645
|
if (!await waitForElement(".cmp-view-tab-tabs")) {
|
|
1646
1646
|
return false;
|
|
1647
1647
|
}
|
|
1648
|
-
await
|
|
1649
|
-
await
|
|
1648
|
+
await waitForThenClick2(".cmp-view-tab-tabs > :first-child");
|
|
1649
|
+
await waitForThenClick2(".cmp-view-tab-tabs > .cmp-view-tab--active:first-child");
|
|
1650
1650
|
for (const item of Array.from(document.querySelectorAll(".cmp-accordion-item"))) {
|
|
1651
1651
|
item.querySelector(".cmp-accordion-item-title").click();
|
|
1652
1652
|
await waitFor(() => !!item.querySelector(".cmp-accordion-item-content.cmp-active"), 10, 50);
|
|
@@ -1658,7 +1658,7 @@ var Conversant = class extends AutoConsentCMPBase {
|
|
|
1658
1658
|
return true;
|
|
1659
1659
|
}
|
|
1660
1660
|
async optIn() {
|
|
1661
|
-
return
|
|
1661
|
+
return waitForThenClick2(".cmp-main-button.cmp-main-button--primary");
|
|
1662
1662
|
}
|
|
1663
1663
|
async test() {
|
|
1664
1664
|
return document.cookie.includes("cmp-data=0");
|
|
@@ -1757,15 +1757,15 @@ var Airbnb = class extends AutoConsentCMPBase {
|
|
|
1757
1757
|
return elementVisible("div[data-testid=main-cookies-banner-container", "any");
|
|
1758
1758
|
}
|
|
1759
1759
|
async optOut() {
|
|
1760
|
-
await
|
|
1760
|
+
await waitForThenClick2("div[data-testid=main-cookies-banner-container] button._snbhip0");
|
|
1761
1761
|
let check;
|
|
1762
1762
|
while (check = document.querySelector("[data-testid=modal-container] button[aria-checked=true]:not([disabled])")) {
|
|
1763
1763
|
check.click();
|
|
1764
1764
|
}
|
|
1765
|
-
return
|
|
1765
|
+
return waitForThenClick2("button[data-testid=save-btn]");
|
|
1766
1766
|
}
|
|
1767
1767
|
async optIn() {
|
|
1768
|
-
return
|
|
1768
|
+
return waitForThenClick2("div[data-testid=main-cookies-banner-container] button._148dgdpk");
|
|
1769
1769
|
}
|
|
1770
1770
|
async test() {
|
|
1771
1771
|
return await waitFor(
|