why result is "Total Window Opened: -1 & -2" ?
video session result is displayed "Total Window Opened: 1,2"
i'm still not able to understand.
it is showing 2 because there must be 2 windows open.
my query is
why output is -1 instead of 1, -2 instead of 2 ?
why result is "Total Window Opened: -1 & -2" ?
Hi,
is this resolved?
It is printing Window size as 1 & 2 only. It just because in your print statement you had mentioned "-" as below which is showing as negative (-1 & -2).
System.out.println("Total Window Opened: -"+windowIds.size());