This is awesome. Could it replace selenium webdriver for webpage automated testing?
On Wed, Jul 18, 2012 at 5:01 AM, Morteza Milani <[email protected]>wrote: > Hi, > > We already announced about AppJS. This time we have something new you may > want to know. > > Thanks to Brandon Benvie, the latest release ( v0.0.16 ) of AppJS supports > bridge > between node and browser. It means you can access browser context right in > node > and/or node context in browser. > > Here is an example: > > > var app = require('appjs'); > > app.serveFilesFrom('./content'); // serves files to browser requests to " > http://appjs/*" > > var window = app.createWindow('http://appjs/', { > width : 640, > height : 460, > resizable : false, > alpha : true // alpha composited background (Windows & Mac) > }); > > > window.on('ready', function(){ > this.require = require; > this.process = process; > this.module = module; > this.console.open(); > this.console.log('process', process); > this.frame.center(); > this.frame.show(); > console.log("Window Ready"); > > *var $ = this.$;* > > * $('#header').append('<canvas id="myCanvas" width="200" > height="100"></canvas>'); > var ctx = $('#myCanvas')[0].getContext("2d"); > ctx.fillStyle="#FF0000"; > ctx.fillRect(0,0,150,75);* > > }); > > window.on('close', function(){ > console.log("Window Closed"); > }); > > > > You can get latest precompiled packages from http://dists.appjs.org/0.0.16 > and fork at https://github.com/appjs/appjs > > Cheers, > Morteza Milani > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
