This explains how to minimize a window in webdriver2.0