I am trying to use wait to wait for frame to be loaded..problem is only paramters accepted for frames are int, string, or webelement...I am able to use waits to change to other frames but not the actual Parent frame itself (or the Default Frame)...
// this works to switch to the iframe with string "Apple"
iframe = wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt("Apple"));
// this doesn't work to switch back to the defaultContent frame...
defaultContent = wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(???))
guessing since defaultContent is a different datatype (Webdriver)..any way how i can wait for the parent frame to load??