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 27998 - Attempt to reuse ended session should result in error response
Summary: Attempt to reuse ended session should result in error response
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-11 12:09 UTC by Andreas Tolfsen
Modified: 2015-02-19 22:15 UTC (History)
2 users (show)

See Also:


Attachments

Description Andreas Tolfsen 2015-02-11 12:09:47 UTC
When attempting to reuse an ended session you should get an error.  All commands called after `DELETE /session/{session_id}` or `DELETE /session/{session_id}/window` on the last window should should result in error responses.

The Selenium project uses the “NoSuchDriver” exception to indicate this and we don't seem to have any equivalent of that.  Maybe a “session expired” error or something similar would make sense?
Comment 1 Andreas Tolfsen 2015-02-11 16:17:25 UTC
I did a preliminary pass at this: https://github.com/w3c/webdriver/pull/9

Critique is welcome.