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

QA's approach 2 Java - Understanding Static context

Selenium 4 absolute beginners - How to create Batch execution file

Technologies - Log4J - Create Log4j Configuration File - Where ? How ? What ?