cobrateam/splinter — pull request #302 by dgreisen-cfpb (2014-04-01 21:04:23+00:00)
Title: Better support for browser windows

browser.windows. Now an object that lazily creates a Window
object for each window. You can access windows by index or by
window handle string. browser.window.current points to the
current window object. Simply assign a different window to current
to switch windows.

Window object. .prev/.next properties give you the previous and
next windows (wrapping around end of list). .is_current is a bool
indicating if this window is the currently active window. set
is_current to True to make it current. .close() closes this window
.close_others() closes all other open windows.

passing tests and basic documentation included.