Justin, Thanks for the reply. Our application will be a standalone one that, built with node-webkit (Chromium and node.js based), can be launched from user's desktop. It's *NOT* launched in a browser, but behaves like one, with a console that can be used to inspect the HTML elements liek you would with a Chrome browser. See attached screenshot. Since it is different than a real browser, so I can't use code like:
browser = Watir::Browser.new :chrome to identify it and subsequent elements/controls like frames, links, buttons, etc. Could you give me some more details on how you identify/automate the controls within the app (before you switching back to regular browser)? Thanks again, Xuemin On Wednesday, October 22, 2014 8:09:17 AM UTC-4, Justin Hull wrote: > > We're using watir web-driver to automate the testing of a Chrome App that > we're developing. We explored the option of launching the browser using a > command line switch to load the app as an extension and were successful in > doing so. We were able to automate the controls within the app and could > see everything in the DOM just as you would if it was a normal web page. > Ultimately we decided on launching the Chrome app in a regular browser > window as it proved to be a less cumbersome option and our developers felt > comfortable that the application we were testing in the browser was not all > that much different from the actual product we are planning on shipping. > Our application is a node/angular-based javascript application. How do > you actually launch the application? Does it launch in a browser? For our > test purposes, our application can actually be built and hosted either on > your local machine or hosted on a webserver - either way you launch it by > pointing the browser to the URL and at that point, it's just regular or web > testing. > > Hope this helps. > > On Sunday, October 19, 2014 10:44:38 PM UTC-4, Xuemin Yin wrote: >> >> Hello, >> >> I've been using Watir to automate Chrome browser based UI testing >> (loading web pages, performing actions on HTML elements etc) and it's been >> a great success. >> >> We are starting some new projects that use node-webkit ( >> https://github.com/rogerwang/node-webkit), a Chromium and node.js based >> app runtime. I haven't figured out how to use Waitr to automate it. >> >> Does anyone know how to do it? If not, is there any other tool for this >> purpose? >> >> Thanks for the help. >> >> -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
