Question: I have a text field that I need to scroll to the bottom of in order for the Next button to be activated to click. This project is using Angular 6 my tests are end to end test running on the protractor/cucumber framework. 

The textbox is contained within the page and nothing seems to work allowing me to scroll within the text field. I have tried the mouseMove mouseDown options, along with a simple sendKeys End or ArrowDown.  

You can find out more details in [this screenshot.](https://screencast.com/t/ozYy5svUuK)

Any advice is greatly appreciated.

Answer: 
Have you tried simply scrolling to the bottom without any reference to any object:

```
element(by.className('<any element on page>')).click();//to focus on page first where scroll need to happen
 browser.executeScript('window.scrollTo(0,document.body.scrollHeight)').then(function()
{ //whatever you need to check for here }
);

```
While I haven't used Protractor, generally when I come across an issue like this I use a `scrollTo` or [scrollIntoView() action](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) to bring the viewport into view of the element.

Some cursory research on Protractor shows there are a few examples out there including this one suggesting you wrap the `scrollIntoView()` action in an executeScript method: <https://stackoverflow.com/questions/39399477/protractor-scroll-into-view-not-working#comment66147579_39399892>. 

So in your case you should be able to locate the Next button within the DOM and then scroll it to within view.