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 26613 - POST /session/{id}/timeouts should take an array of timeouts
Summary: POST /session/{id}/timeouts should take an array of timeouts
Status: NEW
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC 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: 2014-08-20 13:16 UTC by Andreas Tolfsen
Modified: 2014-08-20 13:18 UTC (History)
2 users (show)

See Also:


Attachments

Description Andreas Tolfsen 2014-08-20 13:16:17 UTC
Currently POST /session/{id}/timeouts takes a hash map of {"type": TYPE, "ms": N} which allows setting individual timeouts.

If we consider a local end client binding that wants to set them all at once (pseudo code):

    driver.timeouts = [{type: "page load", ms: 123},
                       {type: "implicit", ms: 456},
                       {type: "script", ms: 789}]

This will currently require them to make three individual calls to the endpoint.

An optimization is to allow the endpoint to take an array of dicts instead:

    [{"type": TYPE, "ms": N}, …]