Closed
Bug 1736235
Opened 4 years ago
Closed 4 years ago
Intermittent /webdriver/tests/find_elements_from_element/user_prompts.py | test_dismiss_and_notify[capabilities0-alert-None] - webdriver.error.NoSuchElementException: no such element (404): Unable to locate element: div
Categories
(Remote Protocol :: Marionette, defect, P5)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1736169
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: abutkovits [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=355085464&repo=try
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/cY4rRIF2TXSBzIhZmZbTuw/runs/0/artifacts/public/logs/live_backing.log
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/user_prompts.py | test_dismiss[capabilities0-confirm-False]
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - TEST-PASS | /webdriver/tests/find_elements_from_element/user_prompts.py | test_dismiss[capabilities0-prompt-None]
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/find_elements_from_element/user_prompts.py | test_dismiss_and_notify[capabilities0-alert-None] - webdriver.error.NoSuchElementException: no such element (404): Unable to locate element: div
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - check_user_prompt_closed_with_exception = <function check_user_prompt_closed_with_exception.<locals>.check_user_prompt_closed_with_exception at 0x7fce171d4710>
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - dialog_type = 'alert', retval = None
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - @pytest.mark.capabilities({"unhandledPromptBehavior": "dismiss and notify"})
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - @pytest.mark.parametrize("dialog_type, retval", [
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - ("alert", None),
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - ("confirm", False),
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - ("prompt", None),
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - ])
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - def test_dismiss_and_notify(check_user_prompt_closed_with_exception, dialog_type, retval):
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - > check_user_prompt_closed_with_exception(dialog_type, retval)
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - check_user_prompt_closed_with_exception = <function check_user_prompt_closed_with_exception.<locals>.check_user_prompt_closed_with_exception at 0x7fce171d4710>
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - dialog_type = 'alert'
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - retval = None
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - tests/web-platform/tests/webdriver/tests/find_elements_from_element/user_prompts.py:112:
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - tests/web-platform/tests/webdriver/tests/find_elements_from_element/user_prompts.py:46: in check_user_prompt_closed_with_exception
[task 2021-10-17T14:55:59.639Z] 14:55:59 INFO - outer_element = session.find.css("div", all=False)
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - create_dialog = <function create_dialog.<locals>.create_dialog at 0x7fce17192170>
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - dialog_type = 'alert'
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - inline = <function inline.<locals>.inline at 0x7fce171d49e0>
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - retval = None
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - session = <Session 4c3f8720-bc6f-45b4-8408-70e30133d276>
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:20: in inner
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - return func(self, *args, **kwargs)
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - args = ('div',)
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - func = <function Find.css at 0x7fce17024320>
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - kwargs = {'all': False}
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - self = <webdriver.client.Find object at 0x7fce171ce890>
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - session = <Session 4c3f8720-bc6f-45b4-8408-70e30133d276>
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:431: in css
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - elements = self._find_element("css selector", element_selector, all)
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - all = False
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - element_selector = 'div'
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - self = <webdriver.client.Find object at 0x7fce171ce890>
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:438: in _find_element
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - return self.session.send_session_command("POST", route, body)
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - all = False
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - body = {'using': 'css selector', 'value': 'div'}
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - route = 'element'
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - selector = 'div'
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - self = <webdriver.client.Find object at 0x7fce171ce890>
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - strategy = 'css selector'
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:654: in send_session_command
[task 2021-10-17T14:55:59.640Z] 14:55:59 INFO - return self.send_command(method, url, body, timeout)
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - body = {'using': 'css selector', 'value': 'div'}
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - method = 'POST'
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - self = <Session 4c3f8720-bc6f-45b4-8408-70e30133d276>
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - timeout = None
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - uri = 'element'
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - url = 'session/4c3f8720-bc6f-45b4-8408-70e30133d276/element'
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - self = <Session 4c3f8720-bc6f-45b4-8408-70e30133d276>, method = 'POST'
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - url = 'session/4c3f8720-bc6f-45b4-8408-70e30133d276/element'
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - body = {'using': 'css selector', 'value': 'div'}, timeout = None
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - def send_command(self, method, url, body=None, timeout=None):
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - """
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - Send a command to the remote end and validate its success.
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - :param method: HTTP method to use in request.
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - e.g. `window/rect`.
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - :param body: Optional body of the HTTP request.
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - :return: `None` if the HTTP response body was empty, otherwise
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - the `value` field returned after parsing the response
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO - body as JSON.
[task 2021-10-17T14:55:59.641Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - :raises error.WebDriverException: If the remote end returns
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - an error.
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - :raises ValueError: If the response body does not contain a
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - `value` key.
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - """
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - response = self.transport.send(
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - method, url, body,
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - session=self, timeout=timeout)
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - if response.status != 200:
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - err = error.from_response(response)
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - # The driver could have already been deleted the session.
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - self.session_id = None
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - > raise err
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - E webdriver.error.NoSuchElementException: no such element (404): Unable to locate element: div
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - E
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - E Remote-end stacktrace:
[task 2021-10-17T14:55:59.642Z] 14:55:59 INFO - E
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - E WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:181:5
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - E NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.jsm:393:5
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - E element.find/</<@chrome://remote/content/marionette/element.js:299:16
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - body = {'using': 'css selector', 'value': 'div'}
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - err = <NoSuchElementException http_status=404>
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - method = 'POST'
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - response = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - self = <Session 4c3f8720-bc6f-45b4-8408-70e30133d276>
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - timeout = None
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - url = 'session/4c3f8720-bc6f-45b4-8408-70e30133d276/element'
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO -
[task 2021-10-17T14:55:59.643Z] 14:55:59 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:618: NoSuchElementException
[task 2021-10-17T14:55:59.646Z] 14:55:59 INFO - ........
[task 2021-10-17T14:55:59.646Z] 14:55:59 INFO - TEST-OK | /webdriver/tests/find_elements_from_element/user_prompts.py | took 12153ms
| Comment hidden (Intermittent Failures Robot) |
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Comment 3•3 years ago
|
||
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.
Description
•