waitForFrameToLoad added