Testing the Protegrity Browser Protector Extension Locally

Set up and test the Browser Protector extension locally.

Test the Protegrity Browser Protector Extension Locally

For testing and validation purposes, it is necessary to run the Protegrity Browser Protector extension locally. This allows developers and administrators to ensure the extension works as expected in a controlled environment before deploying it in production. In this section, we will outline the steps to load and use a local configuration file.

Load the Extension in the Chrome Browser

  1. Open Google Chrome.
  2. Navigate to the Extensions page:
    • Enter chrome://extensions in the address bar and press Enter.
  3. Enable Developer Mode:
    • Toggle the Developer mode switch in the top-right corner of the Extensions page.
  4. Click Load unpacked:
    • Click the Load unpacked button in the top-left corner.
  5. Select the Protegrity Browser Protector Extension Folder:
    • In the file dialog, navigate to the folder containing the extension’s source code and select it.
  6. Verify the Extension:
    • Ensure the extension appears in the list with its name and icon. Check for any errors or warnings in the extension details.

Load the Extension JSON configuration file

  1. Use the JSON configuration from the Configuration Summary step and save it to a file on your local machine, e.g. config.json.
  2. Open Google Chrome.
  3. From the top-right portion of the browser click on Extensions menu, select Protegrity Browser Protector.
  4. Click Select File and specify the config.json file.
  5. Test the extension following the instructions in the Using Protegrity Browser Protector Extension section.

Reviewing Logs

  1. Open the browser’s Developer Tools:
    • Press Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (Mac) to open Developer Tools.
  2. View the Console:
    • Navigate to the Console tab to view any logs or errors produced by the extension.

Unloading the Extension

Once testing is complete, remove the extension from the browser:

  • Navigate to the Extensions page.
  • Locate the Protegrity Browser Protector extension and click Remove.

Last modified : July 18, 2025