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 <[email protected]>wrote:
> Arunoda Susiripala <[email protected]> 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 [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