Can't get value from file type input

RESOLVED WORKSFORME

Status

defect
RESOLVED WORKSFORME
3 years ago
a year ago

People

(Reporter: titus.fortner, Unassigned)

Tracking

(Blocks 1 bug, {pi-marionette-server})

45 Branch
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
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
(Reporter)

Comment 2

2 years ago
Update: this is working for me now.
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME
You need to log in before you can comment on or make changes to this bug.