I have an button on my page that is visible when the user scrolls down. Because of this, protractor tests give me an error:
UnknownError: unknown erro
If you are looking just to navigate to the top or bottom of a long page you could simply use the 'HOME' key to go too the top, or 'END' key to go to the bottom.
e.g:
browser.actions().sendKeys(protractor.Key.HOME).perform();
or
browser.actions().sendKeys(protractor.Key.END).perform();