Closed kylemartinez closed 12 years ago
Thanks!
These changes should be actually in win_32 adapter since they're not using UIA things. It might not be clear enough yet that the plan is to separate UIA and plain old win_32 functionality into separate adapters and go from there.
Also, i'd like to see some specs for that functionality.
Moved the methods to they're appropriate place and added a few unit tests for move_window and get_window_rect.
Merged it into master with slight modifications to the code and API itself (https://github.com/jarmo/RAutomation/commit/661d7ceb16610c1245ca38ba61e57bf0fa7c0a33). Hopefully you also find the end result to be better.
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)