Chaos King,
I think you've already been supplied several ways by this group to
scroll the window,
but as part of your initial question you asked...
"I need to move the windows "
To do that just have the browser to goto a URL, for example:
require 'rubygems'
require 'watir'
browser = Watir::Browser.new
browser.goto("http://www.google.com")
# Move to x=10, y=20
browser.goto("javascript:window.moveTo(10,20)")
# Size to x=1024, y=7768
browser.goto("javascript:window.resizeTo(1024,768)" )
These are but two javascripts commands that browsers support.
There are many other commands that can be performed on a browser
window,
so long as that browser (IE, FF, Safair, Chrome, Opera, etc), supports
javascript).
Here's a nice site to find ind out more javascript commands:
http://www.w3schools.com/jsref/obj_window.asp
Enjoy,
Joe
On Apr 21, 3:29 pm, Abe Heward <[email protected]> wrote:
> Done:http://jira.openqa.org/browse/WTR-475
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]