Bugfix: update resizeWindow

 * update call to use webDriver
 * make sure we focus on a new window when necessary