GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Web Platform
  • Isolated Web Apps (IWA)
  • Capabilities
  • Automation and testing
  • ChromeDriver
  • Extensions
  • Chrome Web Store
  • Chromium
  • Web on Android
  • Origin trials
  • Release notes
  • DevTools
  • Lighthouse

This view

  • Original page
  • New address

GeezerVison is showing developer.chrome.com — Chrome Extensions | ChromeDriver | Chrome for Developers

Chrome Extensions Stay organized with collections Save and categorize content based on your preferences.

Chrome Extensions can be either packed or unpacked.

  • Packed extensions are a single file with a .crx extension.
  • Unpacked extensions are a directory containing the extension, including a manifest.json file.

To pack an unpacked extension, use the Pack button in chrome://extensions or use Chrome: "chrome.exe --pack-extension=C:\path\to\unpacked\extension --pack-extension-key=C:\myext.pem". To unpack a packed extension, extract the file. You may need to rename the filetype from .crx to .zip for your zip utility to recognize it.

Refer to the Extensions documentation for other ways to do this which are more automation friendly.

Install Extensions with ChromeDriver

Packed (.crx file)

ChromeOptions options = new ChromeOptions();
options.addExtensions(new File("/path/to/extension.crx"));
ChromeDriver driver = new ChromeDriver(options);

Unpacked (directory)

ChromeOptions options = new ChromeOptions();
options.addArguments("load-extension=/path/to/extension");
ChromeDriver driver = new ChromeDriver(options);

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-08-19 UTC.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.