NW.JS and Chrome App Extension Location

259 views
Skip to first unread message

Yves

unread,
Nov 1, 2017, 4:56:22 PM11/1/17
to nw.js
Hi,

I would like to be able to launch the NW.js App and load a Chrome App Extension without using the (.crx) file. I have to start from scratch (downloaded/edited work disappears) when i launch the chrome App like this with Selenium Java:

                 
ChromeOptions options = new ChromeOptions();
 options
.addArguments("nwapp=C:\\Users\\usabayv\\Downloads\\psc-chrome.crx");
 
System.setProperty("webdriver.chrome.driver", "C:\\Users\\usabayv\\Downloads\\nwjs-sdk-v0.26.2-win-x64\\nwjs-sdk-v0.26.2-win-x64\\chromedriver.exe");
 
WebDriver driver = new ChromeDriver(options);

OR like this in the terminal:

So i am thinking that after i launch the nw.exe with chrome app (.crx), I can then open nw.exe and point it to the extension ID as shown in the terminal above (chrome-extension://mcmepojaalmokbehpdjhk...../static/.. ) BUT I would need to know where nw stores the extension file is located and find the manifest.json for this extension as well. This would be really helpful.


Thanks.

Kevin Fan (Gnor Tech)

unread,
Nov 20, 2017, 9:25:00 PM11/20/17
to Yves, nw.js
In NW.js you could load any extension by using '--load-extension' pointed to the unpacked extension path.

Kevin
NW.js maintainer
--
You received this message because you are subscribed to the Google Groups "nw.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nwjs-general...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages