FrameHandling

 

IFrame Handle/Frame: Frame is a Web element 

Browser--->page: webelements--->frame: webelements


When we are writing 

WebDriver driver = new ChromerDriver();

driver.get("");//here driver is pointing to page.

if we want to switch to frame we need to switch to the frame


driver.switchTo().frame(ID/NAME);

driver.switchTo().frame("mainpanel");

Thread.sleep(4000);

driver.findElement(By.linkText("CONTACTS")).click();




driver.switchTo().defaultContent();


Comments

Popular posts from this blog

Implicit and Explicit Waits,FluentWait,PageLoadTimeOut

A Interview Questions- selenium