This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
So sayeth the spec: > This array of returned strings MUST contain a handle for every > window associated with the browser session and no others. For each > returned window handle the javascript expression "window.top.closed" > (or equivalent) MUST evaluate to false at the time the command is > being executed. Source: https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#window-handles If there is no current browser session (e.g. no windows open), we will presumably want to return a status code to indicate that WebDriver was unable to successfully complete the command instead of returning an empty array.
since this is more about there being no or invalid sessions merging duplicate *** This bug has been marked as a duplicate of bug 25022 ***