src/aria/jsunit/RobotPhantomJS.js
function (from, to, duration, cb) {
            this.absoluteMouseMove(from, {
                fn : this._stepSmoothAbsoluteMouseMove,
                scope : this,
                resIndex : -1,
                args : {
                    from : from,
                    to : to,
                    duration : duration,
                    cb : cb,
                    endTime : new Date().getTime() + duration
                }
            });
        }
function (from, to, duration, cb) {
            this.absoluteMouseMove(from, {
                fn : this._stepSmoothAbsoluteMouseMove,
                scope : this,
                resIndex : -1,
                args : {
                    from : from,
                    to : to,
                    duration : duration,
                    cb : cb,
                    endTime : new Date().getTime() + duration
                }
            });
        }
function ( from , to , duration , cb ) { this . absoluteMouseMove ( from , { fn : this . _stepSmoothAbsoluteMouseMove , scope : this , resIndex : - 1 , args : { from : from , to : to , duration : duration , cb : cb , endTime : new Date ( ) . getTime ( ) + duration } } ) ; }
Smoothly moves the mouse from one position to another, with PhantomJS screen coordinates.
@param {Object} fromPosition initial position where to set the mouse first (given as an object with x and y
properties, in PhantomJS screen coordinates)
@param {Object} toPosition final position of mouse (given as an object with x and y properties, in PhantomJS
screen coordinates)
@param {Number} duration Time in ms for the mouse move.
@param {aria.core.CfgBeans:Callback} callback
Smoothly moves the mouse from one position to another with PhantomJS screen coordinates .