GUI acceptance tests using environment deployed from packages.
Build: #2936 failed
Job: Multiprovider basic was successful
user sees file is not visible after its upload has been canceled[1oz 2op deployed]: Test case result
The below summarizes the result of the test " user sees file is not visible after its upload has been canceled[1oz 2op deployed]" in build 2,936 of Onedata Products - gui acceptance pkg - Multiprovider basic.
- Description
- user sees file is not visible after its upload has been canceled[1oz 2op deployed]
- Test class
- gui.scenarios.test_multiprovider_basic
- Method
- test_user_sees_file_is_not_visible_after_its_upload_has_been_canceled[1oz_2op_deployed]
- Jira Issue
-
- Duration
- 1 min
- Status
- Failed (New Failure)
Error Log
RuntimeError: no item found in popups web_elem_root = <tests.conftest.ChromeWithAllLogs (session="69eb247abfb34c3bed1c91b5f58bded5")> css_sel = '.webui-popover.in', err_msg = 'no item found in popups' def find_web_elem(web_elem_root, css_sel, err_msg): try: _scroll_to_css_sel(web_elem_root, css_sel) > item = web_elem_root.find_element(By.CSS_SELECTOR, css_sel) tests/gui/utils/generic.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py:748: in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] /usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py:354: in execute self.error_handler.check_response(response) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7f9d9847f890> response = {'status': 404, 'value': '{"value":{"error":"no such element","message":"no such element: Unable to locate element: {\...unknown>\\n#17 0x563b5345ef86 \\u003Cunknown>\\n#18 0x7fe363ae2a94 \\u003Cunknown>\\n#19 0x7fe363b6fa34 __clone\\n"}}'} def check_response(self, response: Dict[str, Any]) -> None: """Checks that a JSON response from the WebDriver does not have an error. :Args: - response - The JSON response from the WebDriver server as a dictionary object. :Raises: If the response contains an error message. """ status = response.get("status", None) if not status or status == ErrorCode.SUCCESS: return value = None message = response.get("message", "") screen: str = response.get("screen", "") stacktrace = None if isinstance(status, int): value_json = response.get("value", None) if value_json and isinstance(value_json, str): import json try: value = json.loads(value_json) if len(value) == 1: value = value["value"] status = value.get("error", None) if not status: status = value.get("status", ErrorCode.UNKNOWN_ERROR) message = value.get("value") or value.get("message") if not isinstance(message, str): value = message message = message.get("message") else: message = value.get("message", None) except ValueError: pass exception_class: Type[WebDriverException] e = ErrorCode() error_codes = [item for item in dir(e) if not item.startswith("__")] for error_code in error_codes: error_info = getattr(ErrorCode, error_code) if isinstance(error_info, list) and status in error_info: exception_class = getattr(ExceptionMapping, error_code, WebDriverException) break else: exception_class = WebDriverException if not value: value = response["value"] if isinstance(value, str): raise exception_class(value) if message == "" and "message" in value: message = value["message"] screen = None # type: ignore[assignment] if "screen" in value: screen = value["screen"] stacktrace = None st_value = value.get("stackTrace") or value.get("stacktrace") if st_value: if isinstance(st_value, str): stacktrace = st_value.split("\n") else: stacktrace = [] try: for frame in st_value: line = frame.get("lineNumber", "") file = frame.get("fileName", "<anonymous>") if line: file = f"{file}:{line}" meth = frame.get("methodName", "<anonymous>") if "className" in frame: meth = f"{frame['className']}.{meth}" msg = " at %s (%s)" msg = msg % (meth, file) stacktrace.append(msg) except TypeError: pass if exception_class == UnexpectedAlertPresentException: alert_text = None if "data" in value: alert_text = value["data"].get("text") elif "alert" in value: alert_text = value["alert"].get("text") raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here > raise exception_class(message, screen, stacktrace) E selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".webui-popover.in"} E (Session info: chrome=130.0.6723.69); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception E Stacktrace: E #0 0x563b5346010a <unknown> E #1 0x563b52f7b460 <unknown> E #2 0x563b52fc7f96 <unknown> E #3 0x563b52fc8221 <unknown> E #4 0x563b5300d5d4 <unknown> E #5 0x563b52fec03d <unknown> E #6 0x563b5300aaf6 <unknown> E #7 0x563b52febdb3 <unknown> E #8 0x563b52fbac10 <unknown> E #9 0x563b52fbbbee <unknown> E #10 0x563b5342c39b <unknown> E #11 0x563b53430338 <unknown> E #12 0x563b53419ebc <unknown> E #13 0x563b53430eb7 <unknown> E #14 0x563b533ff10f <unknown> E #15 0x563b5344e828 <unknown> E #16 0x563b5344e9f0 <unknown> E #17 0x563b5345ef86 <unknown> E #18 0x7fe363ae2a94 <unknown> E #19 0x7fe363b6fa34 __clone /usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/errorhandler.py:229: NoSuchElementException The above exception was the direct cause of the following exception: fixturefunc = <function click_on_confirm_cancel_upload at 0x7f9d991dd300> request = <FixtureRequest for <Function test_user_sees_file_is_not_visible_after_its_upload_has_been_canceled[1oz_2op_deployed]>> kwargs = {'browser_id': 'browser', 'popups': <class 'tests.gui.utils.common.popups.Popups'>, 'selenium': {'browser': <tests.con...st 'selenium' for <Function test_user_sees_file_is_not_visible_after_its_upload_has_been_canceled[1oz_2op_deployed]>>}} def call_fixture_func( fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs ) -> FixtureValue: if is_generator(fixturefunc): fixturefunc = cast( Callable[..., Generator[FixtureValue, None, None]], fixturefunc ) generator = fixturefunc(**kwargs) try: fixture_result = next(generator) except StopIteration: raise ValueError(f"{request.fixturename} did not yield a value") from None finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator) request.addfinalizer(finalizer) else: fixturefunc = cast(Callable[..., FixtureValue], fixturefunc) > fixture_result = fixturefunc(**kwargs) /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils/bdd_utils.py:78: in wrapper return fun(*ba.args, **ba.kwargs) /usr/local/lib/python3.12/dist-packages/decorator.py:232: in fun return caller(func, *(extras + args), **kw) tests/utils/utils.py:93: in wrapper return fun(*args, **kwargs) tests/gui/steps/oneprovider/uploads.py:31: in click_on_confirm_cancel_upload popups(driver).menu_popup_with_text.confirm_cancel_button.click() tests/gui/utils/core/web_elements.py:60: in __get__ elem = super().__get__(instance, owner) tests/gui/utils/core/web_elements.py:26: in __get__ return find_web_elem( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ web_elem_root = <tests.conftest.ChromeWithAllLogs (session="69eb247abfb34c3bed1c91b5f58bded5")> css_sel = '.webui-popover.in', err_msg = 'no item found in popups' def find_web_elem(web_elem_root, css_sel, err_msg): try: _scroll_to_css_sel(web_elem_root, css_sel) item = web_elem_root.find_element(By.CSS_SELECTOR, css_sel) except NoSuchElementException as exc: with suppress(TypeError): err_msg = err_msg() > raise RuntimeError(err_msg) from exc E RuntimeError: no item found in popups tests/gui/utils/generic.py:152: RuntimeError