Bug 997045 - Cannot focus on input field when doing element.click().
 - Add a focus parameter to switchToFrame().
 - Make the paramater "options" as a structured object instead of a
     boolean.
 - Add unit test for this change to switchToFrame.