Closed Bug 1260233 Opened 5 years ago Closed 3 years ago
Can't get value from file type input
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36 Steps to reproduce: This is from Firefox 47, Issue exists with Firefox 45 as well: https://gist.github.com/titusfortner/ba791b42daa7e6a4acdb This is the html for the tag if it matters: <input name="new_user_portrait" id="new_user_portrait" class="portrait" title="Smile!" onchange="WatirSpec.addMessage(this.value)" type="file"> Actual results: Calling /element/:id/attribute/value returned an empty string Expected results: Sending text to an input tag with type="file" should put that data into the value attribute
We currently rely on the Selenium atom to return an element’s conflates attribute and property. In order to fix this we need to implement spec-compatible versions of Get Element Attribute and Get Element Property first.
Depends on: 1272653
Update: this is working for me now.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.