This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28382 - Send "invalid argument" error if file does not exist
Summary: Send "invalid argument" error if file does not exist
Status: NEW
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-31 13:32 UTC by Andreas Tolfsen
Modified: 2015-03-31 13:32 UTC (History)
1 user (show)

See Also:


Attachments

Description Andreas Tolfsen 2015-03-31 13:32:20 UTC
On sending keys to an <input type=file> element we should send back an "invalid argument" error with a helpful message if the file you try to set doesn't exist.  

As there may be guards against setting invalid/non-existing files in UAs, we should avoid doing so as it may cause the driver to have an internal error.