Nested Frames in Selenium
Please find the Selenium Code below:
public static void main(String[] args) {
WebDriver driver = new EdgeDriver();
driver.manage().window().maximize();
driver.get("https://www.leafground.com/frame.xhtml;jsessionid=node05l5ytkb22ijglskabp38jhfp179478.node0");
WebElement clickMeFrame = driver.findElement(By.xpath("(//iframe)[3]"));
driver.switchTo().frame(clickMeFrame);
driver.switchTo().frame("frame2");
WebElement clickMeBtn = driver.findElement(By.id("Click"));
clickMeBtn.click();
driver.switchTo().defaultContent();
driver.switchTo().parentFrame();
}
#testng #testNGtutorial #assert #seleniumwebdriver #selenium #seleniumtutorial #technology #webdriver #java #javaprogramming #coding #xpath #testing #testingtools #automation #automationinmalayalam #seleniumtesting #seleniumautomation