Initial implementation of web driver's switchTo API for frames and windows