I have something similar as well called node-chimera, it's a meld of
phantomjs inside of node basically.  An example runtime code looks like
this:

var Chimera = require('chimera').Chimera;

var c = new Chimera();
c.perform({
  url: "http://mywebsite.com";,
  locals: {
    username: 'myuser',
    password: 'mypass'
  },
  run: function(callback) {
    jQuery('#username').val(username);
    jQuery('#password').val(password);
    jQuery('#login').click();
    callback(null, "success");
  },
  callback: function(err, result) {
    console.log('capture screen shot');
    c.capture("screenshot.png");

    var cookies = c.cookies();
    c.close();

    console.log("Browser cookies here:");
    console.log(cookies);
  }
});


On Wed, Oct 31, 2012 at 7:43 AM, Roger WANG <roger.w...@linux.intel.com>wrote:

> Arunoda Susiripala <arunoda.susirip...@gmail.com> writes:
>
> > Hi Guys,
> >
> > Look at this amazing project: https://github.com/arunoda/chrome-node
>
> If you're interested in calling Node from DOM, here is another project
> worth to check:
>
> https://github.com/rogerwang/node-webkit
>
> It's based on Chromium and Node.
>
> > with the reference of running node in chrome -
> > http://www.youtube.com/watch?v=gkb_x9ZN0Vo&feature=g-all-lsb
>
> --
> Roger WANG                         Intel Open Source Technology Center
>
> --
> 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 nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> 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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to