Switching between windows and close any active window

Added SwitchToWindow method which accepts an AssertFunc type which means you can find a window using any assertion method and switch to that window.

Also added CloseCurrentAndSwitchToWindow method which closes the current active window and switch to another window which user has specified in 'switchtoWindowAssertFunc' parameter.