Module 14: Why getWindowHandles is returning 13 output? | Selenium Forum
M
Posted on 09/01/2017
Hello,

Why does the following code returns 13 and not a proper windows id?

driver.get("https://www.makemytrip.com/holidays-india");
Set<String> windowIds=driver.getWindowHandles();
System.out.println("Total windows opened -> " + windowIds.size());
Iterator<String> iter=windowIds.iterator();
System.out.println(iter.next());

Output :
Total windows opened -> 1
13

M
Replied on 11/01/2017

it is working.

Responsive image