feat(agent/web): Add browser extensions to deal with cookie walls and ads #6778
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
While browsing, the agent may try to access websites that have cookie walls, banners, or other popups, bloating or obstructing access to the page content. This impedes the agent's ability to retrieve information from these websites.
Luckily, there are browser extensions to deal with UX pollution. These can be sideloaded through Selenium and solve the problem for us.
Changes 🏗️
_sideload_chrome_extensions
subroutine toopen_page_in_browser
in web_selenium.pyopen_page_in_browser
to allow time for handling cookie wallsPR Quality Scorecard ✨
+2 pts
+5 pts
+5 pts
+5 pts
-4 pts
+4 pts
+5 pts
-5 pts
agbenchmark
to verify that these changes do not regress performance?+10 pts