title: How to check whether Bottom of the page reached when I do scrolling
body: <p>I have to take the screenshot of the whole page, but I couldn't do that successfully(Only Firefox driver supports to take the full screenshot). So I want to split the page as top, centre, bottom and save it as three screenshots but the problem here is, If I write the below code</p>
  <pre><code>require 'watir'
  b=Watir::Browser.new
  b.scroll.to :top
  b.screenshot.save(&quot;top.png&quot;)
  b.scroll.to :center
  b.screenshot.save(&quot;center.png&quot;)
  b.scroll.to :bottom
  b.screenshot.save(&quot;bottom.png&quot;)
  </code></pre>
  <p>Unfortunately, the aforementioned code takes three screenshots no matter whether the page needs to be scrolled or not. So my question is, Is there any way I can know whether Page has reached the bottom?</p>