Closed Bug 1487658 Opened 6 years ago Closed 6 years ago

Intermittent /webdriver/tests/find_elements_from_element/find.py | test_no_element[css selector-#wontExist] - UnknownErrorException: unknown error (500): Failed to convert data to an object

Categories

(Remote Protocol :: Marionette, defect, P5)

Version 3
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1482029

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

Filed by: ebalazs [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=196862188&repo=mozilla-central

https://queue.taskcluster.net/v1/task/SfBCOyjARXKppwDztJPX5g/runs/0/artifacts/public/logs/live_backing.log

response = <Responsetatus=200 body={"value": [{"element-6066-11e4-a52e-4f735466cecf": "692bc997-1928-449b-a75a-8cfe309dd3dc"}]}>
[task 2018-08-31T10:20:27.402Z] 10:20:27     INFO - STDOUT: error_code = 'invalid selector'
[task 2018-08-31T10:20:27.402Z] 10:20:27     INFO - STDOUT:     def assert_error(response, error_code):
[task 2018-08-31T10:20:27.403Z] 10:20:27     INFO - STDOUT:         """
[task 2018-08-31T10:20:27.404Z] 10:20:27     INFO - STDOUT:         Verify that the provided webdriver.Response instance described
[task 2018-08-31T10:20:27.405Z] 10:20:27     INFO - STDOUT:         a valid error response as defined by `dfn-send-an-error` and
[task 2018-08-31T10:20:27.406Z] 10:20:27     INFO - STDOUT:         the provided error code.
[task 2018-08-31T10:20:27.406Z] 10:20:27     INFO - STDOUT:     
[task 2018-08-31T10:20:27.407Z] 10:20:27     INFO - STDOUT:         :param response: ``webdriver.Response`` instance.
[task 2018-08-31T10:20:27.407Z] 10:20:27     INFO - STDOUT:         :param error_code: String value of the expected error code
[task 2018-08-31T10:20:27.408Z] 10:20:27     INFO - STDOUT:         """
[task 2018-08-31T10:20:27.408Z] 10:20:27     INFO - STDOUT: >       assert response.status == errors[error_code]
[task 2018-08-31T10:20:27.409Z] 10:20:27     INFO - STDOUT: E       assert 200 == 400
[task 2018-08-31T10:20:27.409Z] 10:20:27     INFO - STDOUT: E        +  where 200 = <Responsetatus=200 body={"value": [{"element-6066-11e4-a52e-4f735466cecf": "692bc997-1928-449b-a75a-8cfe309dd3dc"}]}>.status
[task 2018-08-31T10:20:27.410Z] 10:20:27     INFO - STDOUT: error_code = 'invalid selector'
[task 2018-08-31T10:20:27.411Z] 10:20:27     INFO - STDOUT: response   = <Responsetatus=200 body={"value": [{"element-6066-11e4-a52e-4f735466cecf": "692bc997-1928-449b-a75a-8cfe309dd3dc"}]}>
[task 2018-08-31T10:20:27.411Z] 10:20:27     INFO - STDOUT: tests/web-platform/tests/webdriver/tests/support/asserts.py
[task 2018-08-31T10:20:27.412Z] 10:20:27     INFO - STDOUT: :46: AssertionError
[task 2018-08-31T10:20:27.412Z] 10:20:27     INFO - STDOUT: =============================== warnings summary ===============================
[task 2018-08-31T10:20:27.413Z] 10:20:27     INFO - STDOUT: <undetermined location>
[task 2018-08-31T10:20:27.413Z] 10:20:27     INFO - STDOUT:   Module already imported so cannot be rewritten: mozlog
[task 2018-08-31T10:20:27.415Z] 10:20:27     INFO - STDOUT: -- Docs: http://doc.pytest.org/en/latest/warnings.html
[task 2018-08-31T10:20:27.415Z] 10:20:27     INFO - STDOUT: =============== 2 failed, 35 passed, 1 warnings in 12.26 seconds ===============
[task 2018-08-31T10:20:27.424Z] 10:20:27     INFO - 
[task 2018-08-31T10:20:27.424Z] 10:20:27     INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/find.py | test_find_elements_link_text[<a href=#>link&amp;text</a>-link&text] 
[task 2018-08-31T10:20:27.424Z] 10:20:27     INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/find.py | test_find_elements_link_text[<a href=#>LINK TEXT</a>-LINK TEXT] 
[task 2018-08-31T10:20:27.425Z] 10:20:27     INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/find.py | test_find_elements_link_text[<a href=# style='text-transform: uppercase'>link text</a>-LINK TEXT] 
[task 2018-08-31T10:20:27.426Z] 10:20:27     INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/find.py | test_find_elements_partial_link_text[<a href=#>partial link text</a>-link] 
[task 2018-08-31T10:20:27.426Z] 10:20:27     INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/find.py | test_find_elements_partial_link_text[<a href=#>&nbsp;partial link text&nbsp;</a>-link] 
[task 2018-08-31T10:20:27.426Z] 10:20:27     INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/find.py | test_find_elements_partial_link_text[<a href=#>partial link text</a>-k t] 
[task 2018-08-31T10:20:27.427Z] 10:20:27     INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/find.py | test_find_elements_partial_link_text[<a href=#>partial link<br>text</a>-k
[task 2018-08-31T10:20:27.427Z] 10:20:27     INFO - t] 
[task 2018-08-31T10:20:27.428Z] 10:20:27     INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/find.py | test_find_elements_partial_link_text[<a href=#>partial link&amp;text</a>-k&t] 
[task 2018-08-31T10:20:27.428Z] 10:20:27     INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/find.py | test_find_elements_partial_link_text[<a href=#>PARTIAL LINK TEXT</a>-LINK] 
[task 2018-08-31T10:20:27.429Z] 10:20:27     INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/find.py | test_find_elements_partial_link_text[<a href=# style='text-transform: uppercase'>partial link text</a>-LINK] 
[task 2018-08-31T10:20:27.430Z] 10:20:27     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/find_elements_from_element/find.py | test_no_element[css selector-#wontExist] - UnknownErrorException: unknown error (500): Failed to convert data to an object
[task 2018-08-31T10:20:27.430Z] 10:20:27     INFO - session = <Session 94df722f-1522-4bff-b4d6-edd18498d9f7>, using = 'css selector'
[task 2018-08-31T10:20:27.430Z] 10:20:27     INFO - value = '#wontExist'
[task 2018-08-31T10:20:27.430Z] 10:20:27     INFO - 
[task 2018-08-31T10:20:27.431Z] 10:20:27     INFO -     @pytest.mark.parametrize("using,value", [("css selector", "#wontExist")])
[task 2018-08-31T10:20:27.431Z] 10:20:27     INFO -     def test_no_element(session, using, value):
[task 2018-08-31T10:20:27.432Z] 10:20:27     INFO -         # Step 8 - 9
[task 2018-08-31T10:20:27.433Z] 10:20:27     INFO -         session.url = inline("<div></div>")
[task 2018-08-31T10:20:27.434Z] 10:20:27     INFO - >       element = session.find.css("div", all=False)
[task 2018-08-31T10:20:27.434Z] 10:20:27     INFO - 
[task 2018-08-31T10:20:27.434Z] 10:20:27     INFO - session    = <Session 94df722f-1522-4bff-b4d6-edd18498d9f7>
[task 2018-08-31T10:20:27.435Z] 10:20:27     INFO - using      = 'css selector'
[task 2018-08-31T10:20:27.435Z] 10:20:27     INFO - value      = '#wontExist'
[task 2018-08-31T10:20:27.436Z] 10:20:27     INFO - 
[task 2018-08-31T10:20:27.436Z] 10:20:27     INFO - tests/web-platform/tests/webdriver/tests/find_elements_from_element/find.py:111: 
[task 2018-08-31T10:20:27.436Z] 10:20:27     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2018-08-31T10:20:27.437Z] 10:20:27     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:20: in inner
[task 2018-08-31T10:20:27.437Z] 10:20:27     INFO -     return func(self, *args, **kwargs)
[task 2018-08-31T10:20:27.437Z] 10:20:27     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:312: in css
[task 2018-08-31T10:20:27.437Z] 10:20:27     INFO -     return self._find_element("css selector", selector, all)
[task 2018-08-31T10:20:27.438Z] 10:20:27     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:318: in _find_element
[task 2018-08-31T10:20:27.438Z] 10:20:27     INFO -     return self.session.send_session_command("POST", route, body)
[task 2018-08-31T10:20:27.438Z] 10:20:27     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:509: in send_session_command
[task 2018-08-31T10:20:27.438Z] 10:20:27     INFO -     return self.send_command(method, url, body)
[task 2018-08-31T10:20:27.439Z] 10:20:27     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2018-08-31T10:20:27.439Z] 10:20:27     INFO - 
[task 2018-08-31T10:20:27.439Z] 10:20:27     INFO - self = <Session 94df722f-1522-4bff-b4d6-edd18498d9f7>, method = 'POST'
[task 2018-08-31T10:20:27.439Z] 10:20:27     INFO - url = 'session/94df722f-1522-4bff-b4d6-edd18498d9f7/element'
[task 2018-08-31T10:20:27.439Z] 10:20:27     INFO - body = {'using': 'css selector', 'value': 'div'}
[task 2018-08-31T10:20:27.440Z] 10:20:27     INFO - 
[task 2018-08-31T10:20:27.440Z] 10:20:27     INFO -     def send_command(self, method, url, body=None):
[task 2018-08-31T10:20:27.440Z] 10:20:27     INFO -         """
[task 2018-08-31T10:20:27.440Z] 10:20:27     INFO -             Send a command to the remote end and validate its success.
[task 2018-08-31T10:20:27.441Z] 10:20:27     INFO -     
[task 2018-08-31T10:20:27.441Z] 10:20:27     INFO -             :param method: HTTP method to use in request.
[task 2018-08-31T10:20:27.441Z] 10:20:27     INFO -             :param uri: "Command part" of the HTTP request URL,
[task 2018-08-31T10:20:27.442Z] 10:20:27     INFO -                 e.g. `window/rect`.
[task 2018-08-31T10:20:27.442Z] 10:20:27     INFO -             :param body: Optional body of the HTTP request.
[task 2018-08-31T10:20:27.442Z] 10:20:27     INFO -     
[task 2018-08-31T10:20:27.442Z] 10:20:27     INFO -             :return: `None` if the HTTP response body was empty, otherwise
[task 2018-08-31T10:20:27.442Z] 10:20:27     INFO -                 the `value` field returned after parsing the response
[task 2018-08-31T10:20:27.443Z] 10:20:27     INFO -                 body as JSON.
[task 2018-08-31T10:20:27.443Z] 10:20:27     INFO -     
[task 2018-08-31T10:20:27.443Z] 10:20:27     INFO -             :raises error.WebDriverException: If the remote end returns
[task 2018-08-31T10:20:27.443Z] 10:20:27     INFO -                 an error.
[task 2018-08-31T10:20:27.443Z] 10:20:27     INFO -             :raises ValueError: If the response body does not contain a
[task 2018-08-31T10:20:27.443Z] 10:20:27     INFO -                 `value` key.
[task 2018-08-31T10:20:27.444Z] 10:20:27     INFO -             """
[task 2018-08-31T10:20:27.444Z] 10:20:27     INFO -         response = self.transport.send(
[task 2018-08-31T10:20:27.444Z] 10:20:27     INFO -             method, url, body,
[task 2018-08-31T10:20:27.444Z] 10:20:27     INFO -             encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2018-08-31T10:20:27.445Z] 10:20:27     INFO -             session=self)
[task 2018-08-31T10:20:27.445Z] 10:20:27     INFO -     
[task 2018-08-31T10:20:27.445Z] 10:20:27     INFO -         if response.status != 200:
[task 2018-08-31T10:20:27.445Z] 10:20:27     INFO -             err = error.from_response(response)
[task 2018-08-31T10:20:27.446Z] 10:20:27     INFO -     
[task 2018-08-31T10:20:27.446Z] 10:20:27     INFO -             if isinstance(err, error.InvalidSessionIdException):
[task 2018-08-31T10:20:27.446Z] 10:20:27     INFO -                 # The driver could have already been deleted the session.
[task 2018-08-31T10:20:27.446Z] 10:20:27     INFO -                 self.session_id = None
[task 2018-08-31T10:20:27.447Z] 10:20:27     INFO -     
[task 2018-08-31T10:20:27.447Z] 10:20:27     INFO - >           raise err
[task 2018-08-31T10:20:27.447Z] 10:20:27     INFO - E           UnknownErrorException: unknown error (500): Failed to convert data to an object
[task 2018-08-31T10:20:27.447Z] 10:20:27     INFO - 
[task 2018-08-31T10:20:27.448Z] 10:20:27     INFO - body       = {'using': 'css selector', 'value': 'div'}
[task 2018-08-31T10:20:27.448Z] 10:20:27     INFO - err        = <UnknownErrorException http_status=500>
[task 2018-08-31T10:20:27.448Z] 10:20:27     INFO - method     = 'POST'
[task 2018-08-31T10:20:27.448Z] 10:20:27     INFO - response   = <Response status=500 error=<UnknownErrorException http_status=500>>
[task 2018-08-31T10:20:27.448Z] 10:20:27     INFO - self       = <Session 94df722f-1522-4bff-b4d6-edd18498d9f7>
[task 2018-08-31T10:20:27.448Z] 10:20:27     INFO - url        = 'session/94df722f-1522-4bff-b4d6-edd18498d9f7/element'
[task 2018-08-31T10:20:27.449Z] 10:20:27     INFO - 
[task 2018-08-31T10:20:27.449Z] 10:20:27     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:473: UnknownErrorException
[task 2018-08-31T10:20:27.450Z] 10:20:27     INFO - .......
[task 2018-08-31T10:20:27.450Z] 10:20:27     INFO - TEST-OK | /webdriver/tests/find_elements_from_element/find.py | took 12343ms
[task 2018-08-31T10:20:27.479Z] 10:20:27  WARNING - u'runner_teardown': ()
[task 2018-08-31T10:20:27.479Z] 10:20:27     INFO - Starting runner
[task 2018-08-31T10:20:27.507Z] 10:20:27     INFO - PID 12147 | 1535710827499	webdriver::httpapi	DEBUG	Creating routes
[task 2018-08-31T10:20:27.507Z] 10:20:27     INFO - PID 12147 | 1535710827504	geckodriver	DEBUG	Listening on 127.0.0.1:4444
[task 2018-08-31T10:20:28.008Z] 10:20:28     INFO - WebDriver HTTP server listening at http://127.0.0.1:4444/
Content process crash most likely caused by bug 1482029.
Depends on: 1482029
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.