<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24133</bug_id>
          
          <creation_ts>2013-12-19 00:48:24 +0000</creation_ts>
          <short_desc>quit is not documented.</short_desc>
          <delta_ts>2014-08-07 22:44:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="David Burns :automatedtester">dburns</reporter>
          <assigned_to name="Simon Stewart">simon.m.stewart</assigned_to>
          <cc>ato</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97794</commentid>
    <comment_count>0</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2013-12-19 00:48:24 +0000</bug_when>
    <thetext>we have references to quit but it doesn&apos;t seem to be documented. We need to have a section on this to document the method and the desired behaviour of cleaning up after itself.

https://code.google.com/p/selenium/wiki/JsonWireProtocol#DELETE_/session/:sessionId</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101383</commentid>
    <comment_count>1</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-02-25 19:30:41 +0000</bug_when>
    <thetext>Link to quit from close()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109819</commentid>
    <comment_count>2</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-08-04 08:55:03 +0000</bug_when>
    <thetext>*** Bug 26495 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110002</commentid>
    <comment_count>3</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-08-06 18:27:02 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webdriver/rev/f4d1b275fa16</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110021</commentid>
    <comment_count>4</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2014-08-07 10:13:45 +0000</bug_when>
    <thetext>I&apos;m unclear about a few things related to this patch:

- What does it mean that a “session does not exist” on the user agent?
- How should the windows be closed?  Also, I thought the driver was in charge of doing it; not the UA
- Should the sessionId field be set to null in the response from the quit command?  (That&apos;s how I&apos;m interpreting it, but is this what Selenium does?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110033</commentid>
    <comment_count>5</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-08-07 22:44:49 +0000</bug_when>
    <thetext>(In reply to Andreas Tolfsen from comment #4)
&gt; I&apos;m unclear about a few things related to this patch:
&gt; 
&gt; - What does it mean that a “session does not exist” on the user agent?

The user agent needs to keep track of sessionIds (https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#widl-WebDriver-sessionId). If the sessionId doesnt exist then raise an error.

&gt; - How should the windows be closed?  Also, I thought the driver was in
&gt; charge of doing it; not the UA

The driver tells the UA to close it. Since we are putting the driver in the User Agent I don&apos;t think we need to document the exact mechanics of this.

&gt; - Should the sessionId field be set to null in the response from the quit
&gt; command?  (That&apos;s how I&apos;m interpreting it, but is this what Selenium does?)

If we don&apos;t set the UserAgent value of sessionId to null I worry that any commands sent to it. I know that local end never checks the sessionId when it is sent back so don&apos;t know if this really matters</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>