I am writing tests on a third party system, that utilizes iframes. I have been going through my code and eliminating places where I have been using waits/sleep for 2-5 seconds, and looking more for elements to show.
But, there is one frame, where I have a wait for 90 seconds, because it can take a long time to process, and can take 2 seconds to process in our test system. So, the only way I would know is that the frame is closed and returned back to the main window. I looked to see if I can find out if I am on a frame or a page from the Driver.Instance.... but I can't see anything in particular that could help. What should I look for to see if I am still on a frame, or control has returned to the calling web page?