Closed Bug 1260233 Opened 8 years ago Closed 6 years ago

Can't get value from file type input

Categories

(Remote Protocol :: Marionette, defect)

45 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: titus.fortner, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: pi-marionette-server)

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
Blocks: webdriver
Status: UNCONFIRMED → NEW
Ever confirmed: true
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: 6 years ago
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.