<?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>23876</bug_id>
          
          <creation_ts>2013-11-20 13:57:24 +0000</creation_ts>
          <short_desc>Typing keys algorithm should special case input type=file elements</short_desc>
          <delta_ts>2016-09-20 09:39:29 +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>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></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="Andreas Tolfsen">ato</reporter>
          <assigned_to name="Marc Fisher">fisherii</assigned_to>
          <cc>barancev</cc>
    
    <cc>dburns</cc>
    
    <cc>johnjan</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>96588</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2013-11-20 13:57:24 +0000</bug_when>
    <thetext>The typing keys section specifies key-based interaction with web elements that are interactable.  There&apos;s no special casing of input type=file elements which, from a driver perspective, requires special handling.

My suggestion is that we allow that to short-curcuit the algorithm and leave the steps to fill filename(s) into the field undefined since the widgets are radically different depending on user agent and operating system.

As we discussed at the F2F in Boston we also need to cover input type=file multiple elements.

Link to the section:

  https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#typing-keys</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96593</commentid>
    <comment_count>1</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2013-11-20 16:06:16 +0000</bug_when>
    <thetext>Following up on the point about input type=file multiple:  The resolution from our F2F in Boston was to follow the logic that sendKeys, by default, appends.  Provided the user agent supports the concept of multiple, calling it a second time would append another file.  If the user agent doesn&apos;t understand this concept, it will replace the set file.

Link to the resolution:

    http://www.w3.org/2013/06/13-testing-minutes.html#item08</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106365</commentid>
    <comment_count>2</comment_count>
    <who name="Alexei Barantsev">barancev</who>
    <bug_when>2014-05-19 19:35:01 +0000</bug_when>
    <thetext>Another aspect is: should we check presense of the file or not?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108822</commentid>
    <comment_count>3</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2014-07-09 13:28:57 +0000</bug_when>
    <thetext>We (In reply to Alexei Barantsev from comment #2)
&gt; Another aspect is: should we check presense of the file or not?

This is out of scope for WebDriver and is enforced by the user agent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108823</commentid>
    <comment_count>4</comment_count>
    <who name="Alexei Barantsev">barancev</who>
    <bug_when>2014-07-09 13:33:51 +0000</bug_when>
    <thetext>Unfortunately it is *not* enforced, see https://code.google.com/p/selenium/issues/detail?id=7276</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126380</commentid>
    <comment_count>5</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2016-05-09 09:57:06 +0000</bug_when>
    <thetext>This was put in in https://github.com/w3c/webdriver/commit/de28aa7427f4aea3e3d07e433ae58a8485a72c58

Only missing piece is &lt;input type=file multiple&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127412</commentid>
    <comment_count>6</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2016-09-19 16:06:26 +0000</bug_when>
    <thetext>subsequent calls to element.send_keys(path) to &lt;input type=file multiple&gt; would append. This needs to be added to the specification</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>