Site Loader
Auckland, New Zealand
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)
driver.switchTo().window("windowName");
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
driver.switchTo().frame("frameName");
Thanks, Karthik KK Happy Coding !!!

Post Author: Karthik kk

Leave a Reply

Your email address will not be published. Required fields are marked *