Multiple frames in an web application are now a days common. So to switch in between them we can use the below code
WebElement frameElement = driver.findElement(By.id("frame-id"));
driver.switchTo().frame(frameElement); In this code we will learn how to switch between Frames in Java using Webdriver.
WebElement frameElement = driver.findElement(By.id("frame-id"));
driver.switchTo().frame(frameElement);