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 23950 - New status code "invalid argument"
Summary: New status code "invalid argument"
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Andreas Tolfsen
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20860
  Show dependency treegraph
 
Reported: 2013-12-02 12:05 UTC by Andreas Tolfsen
Modified: 2014-04-30 13:28 UTC (History)
5 users (show)

See Also:


Attachments

Description Andreas Tolfsen 2013-12-02 12:05:29 UTC
Because we have commands that receive open-ended arguments there
should be a way for drivers to refuse performing a command because of
invalid or malformed arguments.  I suggest we call such a status code
“invalid argument”.

A good example of when this is needed is the setScreenOrientation
command which receives a string of either “PORTRAIT” or “LANDSCAPE”.
If the user sends something other than these strings the best a driver
can do right now is to pass a non-descriptive WebDriverException/500.
Comment 1 David Burns :automatedtester 2014-04-29 23:01:40 UTC
Landed in https://dvcs.w3.org/hg/webdriver/rev/c01d6518e4c1
Comment 2 Andreas Tolfsen 2014-04-30 13:28:56 UTC
\o/