ps-analysis-tool icon indicating copy to clipboard operation
ps-analysis-tool copied to clipboard

Add a possibility to accepting the usage of cookies for websites under privacy regulation

Open fellyph opened this issue 2 years ago • 0 comments

Feature Request

Description: Under GDPR and other privacy regulations, web applications can only set cookies after the user clicks "accept cookies". When we run the CLI, we can't bypass this check, so the CLI report doesn't capture all the cookies.

For example:

Before accepting the cookies banner: Screenshot 2023-12-12 at 22 16 37

After accepting the cookies banner: Screenshot 2023-12-12 at 22 17 48

A report with the CLI: Screenshot 2023-12-12 at 22 38 31

The suggested solution is to create a property on the CLI, where we can set an element selector such as class, id, or property. To find and click the element responsible for accepting the cookies:

npm run cli -- -u https://sicnoticias.pt/ -e #didomi-notice-agree-button

or

npm run cli -- -u https://sicnoticias.pt/ -c didomi-notice-agree-button

npm run cli -- -u https://sicnoticias.pt/ -i didomi-notice-agree-button

Screenshot 2023-12-12 at 23 05 41

Motivation: This will help the CLI create some reports reproducing users accepting the usage of cookies, giving a more complete report.

User Story: As a developer, I want to create reports with the CLI simulating the users who accepted the usage of cookies so that I can have a completed report.

Acceptance Criteria:

  • [ ] Provide a set of properties to the CLI to select a specific button to be clicked for cookie acceptance.
  • [ ] Have the possibility to select an element via class, id, or property

fellyph avatar Dec 12 '23 23:12 fellyph