Scroll to element on Android device using protractor


Does anyone know how to scrool to an element using Protractor?

I have a button on bottom of the page and I need to perform a scrool down to be able to do a click(), but I’m having problem to do this.

The code don’t work:

cupom.confirmarBtn.getLocation().then(function(navDivLocation) {
        initTop = navDivLocation.y;
        initLeft = navDivLocation.x;
        browser.executeScript('window.scrollTo(' + initTop + ',' + initLeft + ');').then(function() {

Does anyone can help me with another solution?