in reply to Automating site having iframes using Selenium
In my experience, you cannot switch back to an upper frame using Selenium. But I never deeply used Selenium except for browser automation, which Selenium is not intended for.