News for hackers. Stuff that matters.
Re:PhantomJS 1.5 released (headless WebKit with JavaScript API) by datakurre on Thursday March 22, 2012 @09:25AM (#3739556)
I've been building a wrapper to enable PhantomJS as a "remote testing library" for RobotFramework (to do exactly what you described): https://github.com/datakurre/phantomrobot (and http://code.google.com/p/robotframework/ for info about robot framework).
Re:PhantomJS 1.5 released (headless WebKit with JavaScript API) by boundlessdreamz on Thursday March 22, 2012 @09:47AM (#3739636)
From a cursory look, it seems you use websocket to communicate with phantom. Neat!!

Is there a minimal program available that shows this interaction?

Re:PhantomJS 1.5 released (headless WebKit with JavaScript API) by datakurre on Thursday March 22, 2012 @10:14AM (#3739738)
Yes, it uses xmlrpc (node-xmlrpc) for communication between RobotFramework and Node, and websockets (socket.io) for communication between Node and PhantomJS (which didn't bundle http-server when I started).

I'm sorry to not have a separate websockets-example, but there's really nothing special in using websockets with phantom.