This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24373 - Missing mention of status code for getWindowHandles when there is no session
Summary: Missing mention of status code for getWindowHandles when there is no session
Status: RESOLVED DUPLICATE of bug 25022
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: David Burns :automatedtester
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20860
  Show dependency treegraph
 
Reported: 2014-01-23 17:34 UTC by Andreas Tolfsen
Modified: 2014-03-13 23:55 UTC (History)
2 users (show)

See Also:


Attachments

Description Andreas Tolfsen 2014-01-23 17:34:44 UTC
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.
Comment 1 David Burns :automatedtester 2014-03-13 23:55:59 UTC
since this is more about there being no or invalid sessions merging duplicate

*** This bug has been marked as a duplicate of bug 25022 ***