DEV Community

Discussion on: Testing Chrome Extensions with Selenium

Collapse
 
peter279k profile image
peter279k

When I use the ChromeDriver 83.x version, it seems that the ChromeDirver doesn't allow to use add_extension method to load unpacked chrome extension.

When I use packed Chrome extension CRX file to load extension via add_extension method, it's worked successfully.

Collapse
 
tboosters profile image
Terence Chow

You can use

chromeOptions.add_argument('--load-extension=' + UNPACKED_EXTENSION_PATH)

for unpacked extensions

Collapse
 
peter279k profile image
peter279k

Thanks, and this issue I've resolved with loading unpacked Chrome extension directly.