JSDoc
Creates a condition that will wait until the input driver is able to switch
to the designated frame. The target frame may be specified as
1. a numeric index into
[window.frames](https://developer.mozilla.org/en-US/docs/Web/API/Window.frames)
for the currently selected frame.
2. a {@link ./WebElement}, which must reference a FRAME or IFRAME
element on the current page.
3. a locator which may be used to first locate a FRAME or IFRAME on the
current page before attempting to switch to it.
Upon successful resolution of this condition, the driver will be left
focused on the new frame.