There are situation where we might need to work with multiple windows and frames of application at the same time.
Selenium Webdriver has lot of useful features on that
1. We need to switch to window where we need to work with
2. We need to identify whether the window we switched is the one which is expected
3. Perform some operation and come back to the original window (Main application window)
Now all the call to driver will be interpreted at the window to which it switched.
Similarly we can do it for Frame with following code snippet
Happy Coding !!!