Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CMPs #492

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add CMPs #492

wants to merge 3 commits into from

Conversation

seia-soto
Copy link
Contributor

@seia-soto seia-soto commented Sep 25, 2024

@seia-soto seia-soto changed the title Add BigCommerce, Mediapart, NationalGrid Powercuts Add CMPs Sep 25, 2024
@muodov muodov added the minor Increment the minor version when merged label Oct 7, 2024
@muodov muodov requested review from muodov and removed request for sammacbeth October 9, 2024 14:08
],
"optOut": [
{
"click": "#consent-manager div > button[class]:first-child"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it just now, and the reject button is actually the second child. Could you double check? If the button position is not consistent, we may need another way to select. You could use an XPath selector to check a specific text, or maybe check for that style attribute

image

],
"optOut": [
{
"waitForThenClick": "#accept-consent-all"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Judging by the class names, the rules should be reversed: accept-consent-all in optIn, and accept-consent-necessary in optOut

"name": "mediapart-fr",
"vendorUrl": "https://www.mediapart.fr/",
"runContext": {
"urlPattern": "^https://(www)\\.mediapart\\.fr"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this is a site-specific popup? The selectors look pretty generic, should we enable them for more sites?

Comment on lines +26 to +31
{
"waitForThenClick": ".cookie-dialog .content .cookie-option-large span"
},
{
"waitForThenClick": ".cookie-dialog .content button[type='submit']"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fails for me when I browser from NL. Did the HTML structure change?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants