# How to deal with scrollbar?

**URL:** <https://www.ruby-forum.com/t/how-to-deal-with-scrollbar/168744>\
**Category:** Ruby\
**Created:** [May 25, 2009, 11:31am UTC](https://www.ruby-forum.com/t/how-to-deal-with-scrollbar/168744 "2009-05-25T11:31:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![artoxvw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f05b48/32.png) [@artoxvw](https://www.ruby-forum.com/u/artoxvw)\
**Post date:** [May 25, 2009, 11:31am UTC](https://www.ruby-forum.com/t/how-to-deal-with-scrollbar/168744/1 "2009-05-25T11:31:10Z")

</div>

Hi, guys  
I use watir , but when I want to focus the page to the bottom of  
the page, I don’t know how to deal with it  
I need your help thank you

---

<div class="post-metadata">

**Author:** ![artoxvw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f05b48/32.png) [@artoxvw](https://www.ruby-forum.com/u/artoxvw)\
**Post date:** [May 25, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/how-to-deal-with-scrollbar/168744/2 "2009-05-25T18:55:33Z")

</div>

Artoxvw Artoxvw wrote:

> Hi, guys  
> I use watir , but when I want to focus the page to the bottom of  
> the page, I don’t know how to deal with it  
> I need your help thank you

Although this question is better suited to be in the watir forums, i  
will try and answer it anyways.

When you use watir and do anything to a button/link/anything it doesn’t  
matter where it is on the page, even if you cant see it working. Take  
this example:

require ‘watir’  
ie = Watir::IE.new  
ie.goto “[http://wiki.openqa.org/display/WTR/Project+Home](http://wiki.openqa.org/display/WTR/Project+Home)”  
ie.link(:href, “[http://wiki.openqa.org/display/WTR/Watir+Users](http://wiki.openqa.org/display/WTR/Watir+Users)”).flash  
ie.link(:href, “[http://wiki.openqa.org/administrators.action](http://wiki.openqa.org/administrators.action)”).flash

See how it flashes on the bottom without you necessarily being able to  
view it?

If this doesn’t help then please give an example of what you are trying  
to do, and then maybe it will shed some light on the problem.
