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
I'd like to add to the previous answer, and hopefully provide a little more explanation.
This code, in the call to 'executeScript':
'window.scrollTo(0,0);'
If you know you want to be at the very bottom of the window, which was my goal. You can put a very large number in the 'y' coordinate, like I did here:
browser.executeScript('window.scrollTo(0,10000);').then(function () {
expect(.).toBe();
})