Nightwatch.prototype.getLocationInView = function (selector, cb) {
    return this._elementAction(selector, function (element) {
        return when(element.getPositionInView(), function (position) {
            return this._scopeCallBack(cb, [position, element]);
        }.bind(this));