Updated switchToWindow with title location