How to calculate the page scroll length in web application?
<p>I'm doing the below code for scroll down in selenium webdriver.</p>

<pre><code>WebDriver driver = new FirefoxDriver();
JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("window.scrollBy(0,250)", "");
</code></pre>

<p>In the above code, what is the <code>(0,250)</code>? how to calculate the <code>250</code> from the web page?</p>