src/aria/jsunit/RobotPhantomJS.js
function (from, to, duration, cb) {
            var translatedFromPosition = this._translateCoordinates(from);
            var translatedToPosition = this._translateCoordinates(to);
            this.smoothAbsoluteMouseMove(translatedFromPosition, translatedToPosition, duration, cb);
        }
function (from, to, duration, cb) {
            var translatedFromPosition = this._translateCoordinates(from);
            var translatedToPosition = this._translateCoordinates(to);
            this.smoothAbsoluteMouseMove(translatedFromPosition, translatedToPosition, duration, cb);
        }
function ( from , to , duration , cb ) { var translatedFromPosition = this . _translateCoordinates ( from ) ; var translatedToPosition = this . _translateCoordinates ( to ) ; this . smoothAbsoluteMouseMove ( translatedFromPosition , translatedToPosition , duration , cb ) ; }
Smoothly moves the mouse from one position to another, with coordinates relative to the viewport.
@param {Object} fromPosition initial position where to set the mouse first (given as an object with x and y
properties, in viewport coordinates)
@param {Object} toPosition final position of mouse (given as an object with x and y properties, in viewport
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 coordinates relative to the viewport .