Snippet for handling frame in webdriver,
WebElement frame1=driver.findElement(By.className(“framepd”));
WebElement frame1=driver.findElement(By.className(“framepd”));
Driver.switchTo().frame(frame1);
Driver.findElement(By.id(“txtCode”)).sendKeys(“12345”);
No comments:
Post a Comment