Is there anyway to Automate testing of nw.js based Desktop Application

979 views
Skip to first unread message

paut...@gmail.com

unread,
Apr 17, 2015, 3:09:51 AM4/17/15
to nwjs-g...@googlegroups.com
I am trying to automate the UI testing of a Windows desktop application which is developed using nw.js.

It is a standalone application and opens in a browser-like window but not in any of the known browsers (IE, chrome, firefox).

I went through some of the posts and tried using chromedriver. 
I was able to launch the application as mentioned in the below post -

But, I was not able to access any of the UI elements.

Can anyone please let me know if there is a way to access different UI elements of a nw.js based
desktop application or anyway to get the DOM of the application? 

--
Thanks,
Venkatram

Marc-Antoine Pare

unread,
Apr 17, 2015, 2:29:16 PM4/17/15
to nwjs-g...@googlegroups.com, paut...@gmail.com
I posted a few months back about this on the list and didn't get any info. I did manage to get a setup running. Here are my notes on it in a little seed project:


There are also links there to relevant pages in the docs.

-Marc

pavel...@gmail.com

unread,
Apr 20, 2015, 4:39:26 AM4/20/15
to nwjs-g...@googlegroups.com, paut...@gmail.com
Currently chromedriver have little problems: it will try to call node-webkit instead of nwjs and it will not use your package.json
Here's discussion with examples https://github.com/nwjs/nw.js/issues/3167 I find workaround and there is a pull request.

I prefer to write tests with synchronous code, so I use ruby with capybara (it works with chromedriver), for unit testing I use node-fibers

pvbr...@gmail.com

unread,
Dec 4, 2015, 2:34:34 AM12/4/15
to nw.js, paut...@gmail.com


Hello Pavel,
                         Did you get the solution for your problem, because 
                        am also looking for Automation of NW.JS Desktop Application implemented with Web Technologies. iam not sure if selenium            webdriver can be used to automate this type of application.
                       Our Application also makes use of Chromium Embedded Framework. and it does use any of the normal browsers. The Application is Embedded  in a custom like window. It looks like a desktop application. when we double click the application, the application gets opened.
                                Currently iam strugglling to invoke this application (.exe) using selenium web driver. I have written a piece of code, but it opens a error dialog box saying "Cannot extract package, Failed to unzip the package files.
                                Can you please help me is you already have a solution.


Thanks,
Vijay
   

Jean-Philippe Côté

unread,
Dec 16, 2015, 3:27:52 PM12/16/15
to nw.js, paut...@gmail.com, pvbr...@gmail.com

deepthi....@gmail.com

unread,
Feb 25, 2017, 4:20:45 AM2/25/17
to nw.js, paut...@gmail.com


Hi , Have you found any solution for this? I have searched for few and they are not freeware tools. it would be very helpful if you give some inputs to me on this. Thanks in advance!
Reply all
Reply to author
Forward
0 new messages