Selenium - Windows Handling

Windows Handling

 

Set<String> windows = driver.getWindowHandles(); //[parentid,childid,subchildId]

Iterator<String>it = windows.iterator();

String parentId = it.next();

String childId = it.next();

driver.switchTo().window(childId);

 

Comments

Popular posts from this blog

Element Identification Techniques - XPath and CSS for absolute begginers

QA Insights - Test management using Microsoft Test Manager [Novice to Advanced]

QA's approach 2 Java - File Handling Theory