The lib is designed to be used with any driver you could imagine. Phantomjs, casperjs, or any custom implementations. Basically, the library does not care.
You have to pass the driver to the actor, and your custom execute scripts should know how to use it.
var aao = require"aao-js";var driver =//...;/*** Or it could be:** var driver = casper;*/var anActor = aaocreateActordriver;aaoactorManageraddActor"Bob" anActor;var theAction = aaocreateActionreturn driverresponseCode === 200;driverclick"button";//... etc;aaoactorManagergetActor"Bob"executetheAction;