selenium webdriver - Chromedriver extension id does not match key in manifest.json -


i testing chrome extension using selenium webdriver.js , chromedriver. i've been able launch chrome, extension installed, extension id randomly generated instead of matching key property of manifest.json. makes impossible test extension pages options page.

manifest.json

// ... "key": "pjnhffdkdckcagdmfmidafhppbomjdjg", // id chrome web store // ... 

test.js

var webdriver = require('selenium-webdriver'); var chrome = require('selenium-webdriver/chrome');  // load unpacked extension var chromeoptions = new chrome.options(); chromeoptions.addarguments('load-extension=/path/to/my/extension');  var service = new chrome.servicebuilder().build(); var driver = chrome.createdriver(chromeoptions, service) // page not available t_t driver.get('chrome-extension://pjnhffdkdckcagdmfmidafhppbomjdjg/html/options.html'); 

my assumption extension id match key (and when installing web store), not seem true loading extension via chromedriver. there way loaded extension have consistent id? or should take approach?

the manifest key value not extension id. have install extension web store , in manifest.json file on desk. use key value inside file. documentation describes how find install directory.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -