How to use switchTo().frames with LT?

How to use switchTo().frames with LT?

Hi Michael,

WebElement fr = driver.findElementById("theIframe");

driver.switchTo().frame(fr);

Then to move out of frame use:

driver.switchTo().defaultContent();