jarmo/RAutomation — pull request #30 by kylemartinez (2012-02-09 20:14:32+00:00)
Title: Using move_window to help automate and test mobile device rendering

We are redesigning our Team Raiser registration layout at Convio to be compatible with mobile devices. Our Development team has decided to develop this in a way that the page layout will render differently based on the size of the browser window. The method move_window allows us to change the location and size of a browser window so that we can automate and test how the new registration look will render on different screen sizes.

Example:

r = RAutomation::Window.new(:title => /Google/)
#set window size to width:1000 height:500 at location xPos 0, yPos 0
r.move_window(1000, 500, 0, 0)

#set window size to width:500 height:500 and keep window in its current position
r.move_window(500, 500)