分别是2个常用的自动化测试化框架
GitHub - nwutils/nw-selenium-javascript-example: An example of end-to-end testing with Selenium for NW.js apps via JavaScript
GitHub - nwutils/nw-puppeteer-example: An example of using NW.js via Puppeteer.
看习惯使用哪个,注意nwjs的版本不能太低,0.38.2版本试过不行,按git的0.84.0是可以正常跑起来
注意:安装puppeteer的时候先设置环境变量
$ export PUPPETEER_SKIP_DOWNLOAD='true'
再执行,这个项目不需要安装chrome等其他模拟器,直接nwjs就可以
参考:
https://www.cnblogs.com/cangqinglang/p/15832333.html