I Want to Scroll to the bottom of the page

Hi, im using the selenium library to automatize a website and in one of the pages i have fixed div that stays on the bottom of the screen. But in one of the test cases, i need to click a button inside of a grid that stays almost on the bottom of the page, but when i use the keyword Scroll Into View, and passing this buttom as the locator, the fixed stays in front of the button, causing click intercepted error.

I tried to solve the problem from 2 different ways:
Using Execute JavaScript window.scrollTo(0, document.body.scrollHeight), but this doesnt make anything to the page.
The other one was use the Press Key SPACE to go to the bottom of the page, but doesnt worked well to.
Anyone have another ideia?

@FeMafissioni You can use simple Execute JavaScript window.scrollTo(0, 1000),

1 Like