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
- Open Google Chrome.
- Navigate to the Extensions page:
- Enter
chrome://extensionsin the address bar and press Enter.
- Enter
- Enable Developer Mode:
- Toggle the Developer mode switch in the top-right corner of the Extensions page.
- Click Load unpacked:
- Click the Load unpacked button in the top-left corner.
- Select the Protegrity Browser Protector Extension Folder:
- In the file dialog, navigate to the folder containing the extension’s source code and select it.
- 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
- Use the JSON configuration from the
Configuration Summarystep and save it to a file on your local machine, e.g.config.json. - Open Google Chrome.
- From the top-right portion of the browser click on Extensions menu, select
Protegrity Browser Protector. - Click
Select Fileand specify theconfig.jsonfile. - Test the extension following the instructions in the Using Protegrity Browser Protector Extension section.
Reviewing Logs
- Open the browser’s Developer Tools:
- Press
Ctrl + Shift + I(Windows/Linux) orCmd + Option + I(Mac) to open Developer Tools.
- Press
- 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.
Feedback
Was this page helpful?