Skip to content

Access PrivacyBadger results from Selenium tests #2833

Answered by ghostwords
verzulli asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! You could open options.html, get a handle to the background page and thus gain access to the various data structures.

Per-tab results are stored in the badger.tabData object. You can find an example of querying tab data in Privacy Badger's Selenium-powered tests.

Note that you will need to open options.html in a new window, keeping the original website tab open to avoid Privacy Badger cleaning up tabData.

Let me know if this helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@verzulli
Comment options

Answer selected by verzulli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants