Add a possibility to accepting the usage of cookies for websites under privacy regulation
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:
After accepting the cookies banner:
A report with the CLI:
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
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