Bug 180412 - WebDriver: test imported/w3c/webdriver/tests/sessions/new_session/response.py::test_timeouts fails
Summary: WebDriver: test imported/w3c/webdriver/tests/sessions/new_session/response.py...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 180411
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-05 03:09 PST by Carlos Garcia Campos
Modified: 2018-01-23 08:22 PST (History)
4 users (show)

See Also:


Attachments
Patch (7.38 KB, patch)
2018-01-23 00:37 PST, Carlos Garcia Campos
clopez: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2017-12-05 03:09:33 PST
self = <webdriver.client.Session object at 0x7f13186b1950>, method = 'POST', url = 'session'
body = {'capabilities': {'alwaysMatch': {'timeouts': {'implicit': 1000}, 'webkitgtk:browserOptions': {'args': ['--automation'..., '--enable-xss-auditor=false'], 'binary': '/home/cgarcia/src/git/gnome/WebKit/WebKitBuild/Release/bin/MiniBrowser'}}}}

    def send_command(self, method, url, body=None):
        """
            Send a command to the remote end and validate its success.
    
            :param method: HTTP method to use in request.
            :param uri: "Command part" of the HTTP request URL,
                e.g. `window/rect`.
            :param body: Optional body of the HTTP request.
    
            :return: `None` if the HTTP response body was empty, otherwise
                the `value` field returned after parsing the response
                body as JSON.
    
            :raises ValueError: If the response body does not contain a
                `value` key.
            :raises error.WebDriverException: If the remote end returns
                an error.
            """
        response = self.transport.send(
            method, url, body,
            encoder=protocol.Encoder, decoder=protocol.Decoder,
            session=self)
    
        if response.status != 200:
>           raise error.from_response(response)
E           InvalidArgumentException: invalid argument (400): Invalid alwaysMatch capabilities

body       = {'capabilities': {'alwaysMatch': {'timeouts': {'implicit': 1000}, 'webkitgtk:browserOptions': {'args': ['--automation'..., '--enable-xss-auditor=false'], 'binary': '/home/cgarcia/src/git/gnome/WebKit/WebKitBuild/Release/bin/MiniBrowser'}}}}
method     = 'POST'
response   = <Response status=400 error=<InvalidArgumentException http_status=400>>
self       = <webdriver.client.Session object at 0x7f13186b1950>
url        = 'session'
Comment 1 Carlos Garcia Campos 2018-01-23 00:37:39 PST
Created attachment 332013 [details]
Patch
Comment 2 Carlos Garcia Campos 2018-01-23 08:21:54 PST
Committed r227413: <https://trac.webkit.org/changeset/227413>
Comment 3 Radar WebKit Bug Importer 2018-01-23 08:22:24 PST
<rdar://problem/36776929>