Back to Browse

How to handle nested frames in Selenium WebDriver4 - Part 3 | Malayalam Tutorial

391 views
Mar 26, 2023
8:03

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

Download

0 formats

No download links available.

How to handle nested frames in Selenium WebDriver4 - Part 3 | Malayalam Tutorial | NatokHD