Closed
Bug 1736234
Opened 3 years ago
Closed 3 years ago
Intermittent /webdriver/tests/get_element_rect/user_prompts.py | test_ignore[capabilities0-alert] - webdriver.error.NoSuchElementException: no such element (404): Unable to locate element: input
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=355077639&repo=try
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/e7_wXm5uSpeTqY5KG-YFpQ/runs/0/artifacts/public/logs/live_backing.log
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_dismiss_and_notify[capabilities0-confirm-False]
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_dismiss_and_notify[capabilities0-prompt-None]
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/get_element_rect/user_prompts.py | test_ignore[capabilities0-alert] - webdriver.error.NoSuchElementException: no such element (404): Unable to locate element: input
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - check_user_prompt_not_closed_but_exception = <function check_user_prompt_not_closed_but_exception.<locals>.check_user_prompt_not_closed_but_exception at 0x7faa200ff830>
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - dialog_type = 'alert'
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - @pytest.mark.capabilities({"unhandledPromptBehavior": "ignore"})
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - @pytest.mark.parametrize("dialog_type", ["alert", "confirm", "prompt"])
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - def test_ignore(check_user_prompt_not_closed_but_exception, dialog_type):
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - > check_user_prompt_not_closed_but_exception(dialog_type)
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - check_user_prompt_not_closed_but_exception = <function check_user_prompt_not_closed_but_exception.<locals>.check_user_prompt_not_closed_but_exception at 0x7faa200ff830>
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - dialog_type = 'alert'
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - tests/web-platform/tests/webdriver/tests/get_element_rect/user_prompts.py:111:
[task 2021-10-17T12:06:28.268Z] 12:06:28 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - tests/web-platform/tests/webdriver/tests/get_element_rect/user_prompts.py:55: in check_user_prompt_not_closed_but_exception
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - element = session.find.css("input", all=False)
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - create_dialog = <function create_dialog.<locals>.create_dialog at 0x7faa2006e8c0>
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - dialog_type = 'alert'
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - inline = <function inline.<locals>.inline at 0x7faa200ff680>
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - session = <Session c01878da-fc24-49de-a031-aab8c61c5c1e>
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:20: in inner
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - return func(self, *args, **kwargs)
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - args = ('input',)
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - func = <function Find.css at 0x7faa1ffe3320>
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - kwargs = {'all': False}
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - self = <webdriver.client.Find object at 0x7faa20668e90>
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - session = <Session c01878da-fc24-49de-a031-aab8c61c5c1e>
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:431: in css
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - elements = self._find_element("css selector", element_selector, all)
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - all = False
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - element_selector = 'input'
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - self = <webdriver.client.Find object at 0x7faa20668e90>
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:438: in _find_element
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - return self.session.send_session_command("POST", route, body)
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - all = False
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - body = {'using': 'css selector', 'value': 'input'}
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - route = 'element'
[task 2021-10-17T12:06:28.269Z] 12:06:28 INFO - selector = 'input'
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - self = <webdriver.client.Find object at 0x7faa20668e90>
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - strategy = 'css selector'
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:654: in send_session_command
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - return self.send_command(method, url, body, timeout)
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - body = {'using': 'css selector', 'value': 'input'}
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - method = 'POST'
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - self = <Session c01878da-fc24-49de-a031-aab8c61c5c1e>
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - timeout = None
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - uri = 'element'
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - url = 'session/c01878da-fc24-49de-a031-aab8c61c5c1e/element'
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - self = <Session c01878da-fc24-49de-a031-aab8c61c5c1e>, method = 'POST'
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - url = 'session/c01878da-fc24-49de-a031-aab8c61c5c1e/element'
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - body = {'using': 'css selector', 'value': 'input'}, timeout = None
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - def send_command(self, method, url, body=None, timeout=None):
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - """
[task 2021-10-17T12:06:28.270Z] 12:06:28 INFO - Send a command to the remote end and validate its success.
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - :param method: HTTP method to use in request.
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - e.g. `window/rect`.
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - :param body: Optional body of the HTTP request.
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - :return: `None` if the HTTP response body was empty, otherwise
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - the `value` field returned after parsing the response
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - body as JSON.
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - :raises error.WebDriverException: If the remote end returns
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - an error.
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - :raises ValueError: If the response body does not contain a
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - `value` key.
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - """
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - response = self.transport.send(
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - method, url, body,
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2021-10-17T12:06:28.271Z] 12:06:28 INFO - session=self, timeout=timeout)
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - if response.status != 200:
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - err = error.from_response(response)
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - # The driver could have already been deleted the session.
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - self.session_id = None
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - > raise err
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - E webdriver.error.NoSuchElementException: no such element (404): Unable to locate element: input
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - E
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - E Remote-end stacktrace:
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - E
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - E WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:181:5
[task 2021-10-17T12:06:28.272Z] 12:06:28 INFO - E NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.jsm:393:5
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO - E element.find/</<@chrome://remote/content/marionette/element.js:299:16
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO - body = {'using': 'css selector', 'value': 'input'}
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO - err = <NoSuchElementException http_status=404>
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO - method = 'POST'
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO - response = <Response status=404 error=<NoSuchElementException http_status=404>>
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO - self = <Session c01878da-fc24-49de-a031-aab8c61c5c1e>
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO - timeout = None
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO - url = 'session/c01878da-fc24-49de-a031-aab8c61c5c1e/element'
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO -
[task 2021-10-17T12:06:28.273Z] 12:06:28 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:618: NoSuchElementException
[task 2021-10-17T12:06:28.275Z] 12:06:28 INFO - .....
[task 2021-10-17T12:06:28.275Z] 12:06:28 INFO - TEST-OK | /webdriver/tests/get_element_rect/user_prompts.py | took 12313ms
Comment hidden (Intermittent Failures Robot) |
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Comment 3•2 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
•