I am trying to load a page ins selenium.
After that, I need to scroll to the end of the page.

For that, I am trying this

```
import org.openqa.selenium.JavascriptExecutor
driver.get(<My URL>)
JavascriptExecutor js = (JavascriptExecutor) driver
js.executeScript("window.scrollBy(0,document.body.scrollHeight)")

```

But it is not working and showing syntax error

[![enter image description here](https://i.stack.imgur.com/cN2Y7.png)](https://i.stack.imgur.com/cN2Y7.png)