Skip to content

fix: ADDON-65405 multi level menu #882

fix: ADDON-65405 multi level menu

fix: ADDON-65405 multi level menu #882

GitHub Actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1 failed Oct 26, 2023 in 0s

test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1 ❌

Tests failed

❌ test-results/test.xml

62 tests were completed in 5605s with 0 passed, 62 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 62❌ 5605s

❌ pytest

tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput
  ❌ test_example_input_one_required_field_name
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eaebf0>
  ❌ test_example_input_one_valid_length_name
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eac640>
  ❌ test_example_input_one_valid_input_name
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eae5f0>
  ❌ test_example_input_one_list_single_select_group_test
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ead1b0>
  ❌ test_example_input_one_select_value_single_select_group_test
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e34250>
  ❌ test_example_input_one_search_value_single_select_group_test
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e34280>
  ❌ test_example_input_one_default_value_multiple_select_test
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e35600>
  ❌ test_example_input_one_list_multiple_select_test
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e35de0>
  ❌ test_example_input_one_select_value_multiple_select_test
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e36140>
  ❌ test_example_input_one_select_multiple_values_multiple_select_test
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e348b0>
  ❌ test_example_input_one_deselect_multiple_select_test
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e348e0>
  ❌ test_example_input_one_search_value_multiple_select_test
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e34d00>
  ❌ test_example_input_one_default_value_example_checkbox
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ead2d0>
  ❌ test_example_input_one_unchecked_example_checkbox
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eafd30>
  ❌ test_example_input_one_checked_example_checkbox
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e355a0>
  ❌ test_example_input_one_default_value_example_radio
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e35e70>
  ❌ test_example_input_one_select_value_example_radio
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e363e0>
  ❌ test_example_input_one_required_field_interval
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e36c20>
  ❌ test_example_input_one_valid_input_interval
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e36ce0>
  ❌ test_example_input_one_required_field_index
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e36860>
  ❌ test_example_input_one_default_value_index
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e34160>
  ❌ test_example_input_one_required_field_example_account
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e37070>
  ❌ test_example_input_one_required_field_object
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e35a50>
  ❌ test_example_input_one_required_field_object_fields
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e340a0>
  ❌ test_example_input_one_required_field_order_by
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce3520>
  ❌ test_example_input_one_default_value_order_by
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce34f0>
  ❌ test_example_input_one_fields_label_entity
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce3f10>
  ❌ test_example_input_two_fields_label_entity
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce3c10>
  ❌ test_example_input_one_fields_placeholder_value
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e369b0>
  ❌ test_example_input_two_fields_placeholder_value
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eafd00>
  ❌ test_example_input_one_help_text_entity
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce1300>
  ❌ test_example_input_one_valid_input_query_start_date
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce12d0>
  ❌ test_example_input_one_default_value_limit
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce3160>
  ❌ test_example_input_one_help_link
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce2ec0>
  ❌ test_example_input_one_add_frontend_validation
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce2bf0>
  ❌ test_example_input_one_add_backend_validation
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce28f0>
  ❌ test_example_input_one_edit_uneditable_field_name
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce25f0>
  ❌ test_example_input_one_edit_frontend_validation
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce22f0>
  ❌ test_example_input_one_edit_backend_validation
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce1f30>
  ❌ test_example_input_one_clone_default_values
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce1990>
  ❌ test_example_input_one_clone_frontend_validation
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce1b40>
  ❌ test_example_input_one_clone_backend_validation
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce1480>
  ❌ test_example_input_one_delete_row_frontend_validation
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce10c0>
  ❌ test_example_input_one_delete_row_backend_validation
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce0e80>
  ❌ test_example_input_one_add_close_entity
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e35720>
  ❌ test_example_input_one_edit_close_entity
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce19c0>
  ❌ test_example_input_one_clone_close_entity
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce2020>
  ❌ test_example_input_one_delete_close_entity
	browser = None
  ❌ test_example_input_one_add_cancel_entity
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce0370>
  ❌ test_example_input_one_edit_cancel_entity
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054bd96f0>
  ❌ test_example_input_one_clone_cancel_entity
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054bd9720>
  ❌ test_example_input_one_delete_cancel_entity
	browser = None
  ❌ test_example_input_one_add_duplicate_names
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054bd85b0>
  ❌ test_example_input_one_clone_duplicate_names
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054bd8970>
  ❌ test_example_input_one_add_valid_title
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054bd8f40>
  ❌ test_example_input_one_edit_valid_title
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054bd8d30>
  ❌ test_example_input_one_clone_valid_title
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054bd9510>
  ❌ test_example_input_one_delete_valid_title
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054bda110>
  ❌ test_example_input_one_delete_valid_prompt_message
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054bd99f0>
  ❌ test_inputs_textarea_height
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce08e0>
  ❌ test_inputs_textarea_big_input
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ce0280>
  ❌ test_inputs_textarea_scroll
	self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054bd8f70>

Annotations

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_required_field_name

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eaebf0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eaebf0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe054d08160>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_required_field_name(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies required field name in example input one"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:134: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054d0baf0>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
>       self.add_input.click()

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webelement.WebElement (session="6e6bfdf286b94d92a53a44719e178327", element="e1c057e9-0435-4de4-9723-97d29c440285")>

    def click(self):
        """Clicks the element."""
>       self._execute(Command.CLICK_ELEMENT)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webelement.py:80: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webelement.WebElement (session="6e6bfdf286b94d92a53a44719e178327", element="e1c057e9-0435-4de4-9723-97d29c440285")>
command = 'clickElement'
params = {'id': 'e1c057e9-0435-4de4-9723-97d29c440285', 'sessionId': '6e6bfdf286b94d92a53a44719e178327'}

    def _execute(self, command, params=None):
        """Executes a command against the underlying HTML element.
    
        Args:
          command: The name of the command to _execute as a string.
          params: A dictionary of named parameters to send with the command.
    
        Returns:
          The command's JSON response loaded into a dictionary object.
        """
        if not params:
            params = {}
        params['id'] = self._id
>       return self._parent.execute(command, params)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webelement.py:633: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webdriver.WebDriver (session="6e6bfdf286b94d92a53a44719e178327")>
driver_command = 'clickElement'
params = {'id': 'e1c057e9-0435-4de4-9723-97d29c440285'}

    def execute(self, driver_command, params=None):
        """
        Sends a command to be executed by a command.CommandExecutor.
    
        :Args:
         - driver_command: The name of the command to execute as a string.
         - params: A dictionary of named parameters to send with the command.
    
        :Returns:
          The command's JSON response loaded into a dictionary object.
        """
        if self.session_id is not None:
            if not params:
                params = {'sessionId': self.session_id}
            elif 'sessionId' not in params:
                params['sessionId'] = self.session_id
    
        params = self._wrap_value(params)
        response = self.command_executor.execute(driver_command, params)
        if response:
>           self.error_handler.check_response(response)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py:321: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7fe054d08280>
response = {'status': 404, 'value': '{"value":{"error":"stale element reference","message":"The element with the reference XXXXXX...sys.mjs:244:10\\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:72:30\\n"}}'}

    def check_response(self, response):
        """
        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 status is None or status == ErrorCode.SUCCESS:
            return
        value = None
        message = response.get("message", "")
        screen = response.get("screen", "")
        stacktrace = None
        if isinstance(status, int):
            value_json = response.get('value', None)
            if value_json and isinstance(value_json, basestring):
                import json
                try:
                    value = json.loads(value_json)
                    if len(value.keys()) == 1:
                        value = value['value']
                    status = value.get('error', None)
                    if status is None:
                        status = value["status"]
                        message = value["value"]
                        if not isinstance(message, basestring):
                            value = message
                            message = message.get('message')
                    else:
                        message = value.get('message', None)
                except ValueError:
                    pass
    
        exception_class = ErrorInResponseException
        if status in ErrorCode.NO_SUCH_ELEMENT:
            exception_class = NoSuchElementException
        elif status in ErrorCode.NO_SUCH_FRAME:
            exception_class = NoSuchFrameException
        elif status in ErrorCode.NO_SUCH_WINDOW:
            exception_class = NoSuchWindowException
        elif status in ErrorCode.STALE_ELEMENT_REFERENCE:
            exception_class = StaleElementReferenceException
        elif status in ErrorCode.ELEMENT_NOT_VISIBLE:
            exception_class = ElementNotVisibleException
        elif status in ErrorCode.INVALID_ELEMENT_STATE:
            exception_class = InvalidElementStateException
        elif status in ErrorCode.INVALID_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER:
            exception_class = InvalidSelectorException
        elif status in ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
            exception_class = ElementNotSelectableException
        elif status in ErrorCode.ELEMENT_NOT_INTERACTABLE:
            exception_class = ElementNotInteractableException
        elif status in ErrorCode.INVALID_COOKIE_DOMAIN:
            exception_class = InvalidCookieDomainException
        elif status in ErrorCode.UNABLE_TO_SET_COOKIE:
            exception_class = UnableToSetCookieException
        elif status in ErrorCode.TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.SCRIPT_TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.UNKNOWN_ERROR:
            exception_class = WebDriverException
        elif status in ErrorCode.UNEXPECTED_ALERT_OPEN:
            exception_class = UnexpectedAlertPresentException
        elif status in ErrorCode.NO_ALERT_OPEN:
            exception_class = NoAlertPresentException
        elif status in ErrorCode.IME_NOT_AVAILABLE:
            exception_class = ImeNotAvailableException
        elif status in ErrorCode.IME_ENGINE_ACTIVATION_FAILED:
            exception_class = ImeActivationFailedException
        elif status in ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS:
            exception_class = MoveTargetOutOfBoundsException
        elif status in ErrorCode.JAVASCRIPT_ERROR:
            exception_class = JavascriptException
        elif status in ErrorCode.SESSION_NOT_CREATED:
            exception_class = SessionNotCreatedException
        elif status in ErrorCode.INVALID_ARGUMENT:
            exception_class = InvalidArgumentException
        elif status in ErrorCode.NO_SUCH_COOKIE:
            exception_class = NoSuchCookieException
        elif status in ErrorCode.UNABLE_TO_CAPTURE_SCREEN:
            exception_class = ScreenshotException
        elif status in ErrorCode.ELEMENT_CLICK_INTERCEPTED:
            exception_class = ElementClickInterceptedException
        elif status in ErrorCode.INSECURE_CERTIFICATE:
            exception_class = InsecureCertificateException
        elif status in ErrorCode.INVALID_COORDINATES:
            exception_class = InvalidCoordinatesException
        elif status in ErrorCode.INVALID_SESSION_ID:
            exception_class = InvalidSessionIdException
        elif status in ErrorCode.UNKNOWN_METHOD:
            exception_class = UnknownMethodException
        else:
            exception_class = WebDriverException
        if value == '' or value is None:
            value = response['value']
        if isinstance(value, basestring):
            if exception_class == ErrorInResponseException:
                raise exception_class(response, value)
            raise exception_class(value)
        if message == "" and 'message' in value:
            message = value['message']
    
        screen = None
        if 'screen' in value:
            screen = value['screen']
    
        stacktrace = None
        if 'stackTrace' in value and value['stackTrace']:
            stacktrace = []
            try:
                for frame in value['stackTrace']:
                    line = self._value_or_default(frame, 'lineNumber', '')
                    file = self._value_or_default(frame, 'fileName', '<anonymous>')
                    if line:
                        file = "%s:%s" % (file, line)
                    meth = self._value_or_default(frame, 'methodName', '<anonymous>')
                    if 'className' in frame:
                        meth = "%s.%s" % (frame['className'], meth)
                    msg = "    at %s (%s)"
                    msg = msg % (meth, file)
                    stacktrace.append(msg)
            except TypeError:
                pass
        if exception_class == ErrorInResponseException:
            raise exception_class(response, message)
        elif 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)
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.StaleElementReferenceException: Message: The element with the reference XXXXXXXX-XXXX-XXXX-XXXX-XXXX9c440285 is stale; either its node document is not the active document, or it is no longer connected to the DOM

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py:242: StaleElementReferenceException

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_valid_length_name

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eac640>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eac640>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe054b47dc0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_valid_length_name(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies the name field should not be more than 100 characters"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:157: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054b47820>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
>       self.add_input.click()

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webelement.WebElement (session="9bca3d4f1b5844cdbd4bffe24370c4df", element="a861b65a-98cf-4c59-b125-13d67e6b55c7")>

    def click(self):
        """Clicks the element."""
>       self._execute(Command.CLICK_ELEMENT)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webelement.py:80: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webelement.WebElement (session="9bca3d4f1b5844cdbd4bffe24370c4df", element="a861b65a-98cf-4c59-b125-13d67e6b55c7")>
command = 'clickElement'
params = {'id': 'a861b65a-98cf-4c59-b125-13d67e6b55c7', 'sessionId': '9bca3d4f1b5844cdbd4bffe24370c4df'}

    def _execute(self, command, params=None):
        """Executes a command against the underlying HTML element.
    
        Args:
          command: The name of the command to _execute as a string.
          params: A dictionary of named parameters to send with the command.
    
        Returns:
          The command's JSON response loaded into a dictionary object.
        """
        if not params:
            params = {}
        params['id'] = self._id
>       return self._parent.execute(command, params)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webelement.py:633: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webdriver.WebDriver (session="9bca3d4f1b5844cdbd4bffe24370c4df")>
driver_command = 'clickElement'
params = {'id': 'a861b65a-98cf-4c59-b125-13d67e6b55c7'}

    def execute(self, driver_command, params=None):
        """
        Sends a command to be executed by a command.CommandExecutor.
    
        :Args:
         - driver_command: The name of the command to execute as a string.
         - params: A dictionary of named parameters to send with the command.
    
        :Returns:
          The command's JSON response loaded into a dictionary object.
        """
        if self.session_id is not None:
            if not params:
                params = {'sessionId': self.session_id}
            elif 'sessionId' not in params:
                params['sessionId'] = self.session_id
    
        params = self._wrap_value(params)
        response = self.command_executor.execute(driver_command, params)
        if response:
>           self.error_handler.check_response(response)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py:321: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7fe054b45c90>
response = {'status': 404, 'value': '{"value":{"error":"stale element reference","message":"The element with the reference XXXXXX...sys.mjs:244:10\\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:72:30\\n"}}'}

    def check_response(self, response):
        """
        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 status is None or status == ErrorCode.SUCCESS:
            return
        value = None
        message = response.get("message", "")
        screen = response.get("screen", "")
        stacktrace = None
        if isinstance(status, int):
            value_json = response.get('value', None)
            if value_json and isinstance(value_json, basestring):
                import json
                try:
                    value = json.loads(value_json)
                    if len(value.keys()) == 1:
                        value = value['value']
                    status = value.get('error', None)
                    if status is None:
                        status = value["status"]
                        message = value["value"]
                        if not isinstance(message, basestring):
                            value = message
                            message = message.get('message')
                    else:
                        message = value.get('message', None)
                except ValueError:
                    pass
    
        exception_class = ErrorInResponseException
        if status in ErrorCode.NO_SUCH_ELEMENT:
            exception_class = NoSuchElementException
        elif status in ErrorCode.NO_SUCH_FRAME:
            exception_class = NoSuchFrameException
        elif status in ErrorCode.NO_SUCH_WINDOW:
            exception_class = NoSuchWindowException
        elif status in ErrorCode.STALE_ELEMENT_REFERENCE:
            exception_class = StaleElementReferenceException
        elif status in ErrorCode.ELEMENT_NOT_VISIBLE:
            exception_class = ElementNotVisibleException
        elif status in ErrorCode.INVALID_ELEMENT_STATE:
            exception_class = InvalidElementStateException
        elif status in ErrorCode.INVALID_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER:
            exception_class = InvalidSelectorException
        elif status in ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
            exception_class = ElementNotSelectableException
        elif status in ErrorCode.ELEMENT_NOT_INTERACTABLE:
            exception_class = ElementNotInteractableException
        elif status in ErrorCode.INVALID_COOKIE_DOMAIN:
            exception_class = InvalidCookieDomainException
        elif status in ErrorCode.UNABLE_TO_SET_COOKIE:
            exception_class = UnableToSetCookieException
        elif status in ErrorCode.TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.SCRIPT_TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.UNKNOWN_ERROR:
            exception_class = WebDriverException
        elif status in ErrorCode.UNEXPECTED_ALERT_OPEN:
            exception_class = UnexpectedAlertPresentException
        elif status in ErrorCode.NO_ALERT_OPEN:
            exception_class = NoAlertPresentException
        elif status in ErrorCode.IME_NOT_AVAILABLE:
            exception_class = ImeNotAvailableException
        elif status in ErrorCode.IME_ENGINE_ACTIVATION_FAILED:
            exception_class = ImeActivationFailedException
        elif status in ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS:
            exception_class = MoveTargetOutOfBoundsException
        elif status in ErrorCode.JAVASCRIPT_ERROR:
            exception_class = JavascriptException
        elif status in ErrorCode.SESSION_NOT_CREATED:
            exception_class = SessionNotCreatedException
        elif status in ErrorCode.INVALID_ARGUMENT:
            exception_class = InvalidArgumentException
        elif status in ErrorCode.NO_SUCH_COOKIE:
            exception_class = NoSuchCookieException
        elif status in ErrorCode.UNABLE_TO_CAPTURE_SCREEN:
            exception_class = ScreenshotException
        elif status in ErrorCode.ELEMENT_CLICK_INTERCEPTED:
            exception_class = ElementClickInterceptedException
        elif status in ErrorCode.INSECURE_CERTIFICATE:
            exception_class = InsecureCertificateException
        elif status in ErrorCode.INVALID_COORDINATES:
            exception_class = InvalidCoordinatesException
        elif status in ErrorCode.INVALID_SESSION_ID:
            exception_class = InvalidSessionIdException
        elif status in ErrorCode.UNKNOWN_METHOD:
            exception_class = UnknownMethodException
        else:
            exception_class = WebDriverException
        if value == '' or value is None:
            value = response['value']
        if isinstance(value, basestring):
            if exception_class == ErrorInResponseException:
                raise exception_class(response, value)
            raise exception_class(value)
        if message == "" and 'message' in value:
            message = value['message']
    
        screen = None
        if 'screen' in value:
            screen = value['screen']
    
        stacktrace = None
        if 'stackTrace' in value and value['stackTrace']:
            stacktrace = []
            try:
                for frame in value['stackTrace']:
                    line = self._value_or_default(frame, 'lineNumber', '')
                    file = self._value_or_default(frame, 'fileName', '<anonymous>')
                    if line:
                        file = "%s:%s" % (file, line)
                    meth = self._value_or_default(frame, 'methodName', '<anonymous>')
                    if 'className' in frame:
                        meth = "%s.%s" % (frame['className'], meth)
                    msg = "    at %s (%s)"
                    msg = msg % (meth, file)
                    stacktrace.append(msg)
            except TypeError:
                pass
        if exception_class == ErrorInResponseException:
            raise exception_class(response, message)
        elif 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)
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.StaleElementReferenceException: Message: The element with the reference XXXXXXXX-XXXX-XXXX-XXXX-XXXX7e6b55c7 is stale; either its node document is not the active document, or it is no longer connected to the DOM

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py:242: StaleElementReferenceException

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_valid_input_name

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eae5f0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054eae5f0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe054ce48b0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_valid_input_name(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies whether adding special characters, name field displays validation error"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:175: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054ce45e0>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
>       self.add_input.click()

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054ce45e0>
key = 'add_input'

    def __getattr__(self, key):
        """
        Makes the web-elements to be accessible directly.
        - For example self.elements = {"textbox": Selector(by=..., select=...),
            Access the element by doing self.textbox directly.
        - It also has implicit wait while finding the element.
          :param key: The key of the element mentioned in self.elements
          :returns: The webelement we are accessing
        """
        try:
>           return self.get_element(key)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054ce45e0>
key = 'add_input'

    def get_element(self, key):
        """
        Get the web-element.
    
        Note: There is a wait in get_element.
            :param key: The key of the element mentioned in self.elements
            :returns: element The element we are looking for by key
        """
        element = self.elements[key]
>       return self._get_element(element.by, element.select)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054ce45e0>
by = 'id', select = 'addInputBtn'

    def _get_element(self, by, select):
        """
        Find the element from the page.
            :param by: The type of the selenium locator
            :param select: The selector text of type mentioned in by.
            :returns: The webelement we are accessing
        """
        msg = "by={} select={} Element not found in the page".format(by, select)
>       return self.wait.until(EC.presence_of_element_located((by, select)), msg)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.support.wait.WebDriverWait (session="23f0976fa88e4dbbb39f7a9973e1166a")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe05499e200>
message = 'by=id select=addInputBtn Element not found in the page'

    def until(self, method, message=''):
        """Calls the method provided with the driver as an argument until the \
        return value is not False."""
        screen = None
        stacktrace = None
    
        end_time = time.time() + self._timeout
        while True:
            try:
                value = method(self._driver)
                if value:
                    return value
            except self._ignored_exceptions as exc:
                screen = getattr(exc, 'screen', None)
                stacktrace = getattr(exc, 'stacktrace', None)
            time.sleep(self._poll)
            if time.time() > end_time:
                break
>       raise TimeoutException(message, screen, stacktrace)
E       selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_list_single_select_group_test

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ead1b0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054ead1b0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe054a685e0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_list_single_select_group_test(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies values Single Select Group Test dropdown in example input one"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
        single_select_group_test_list = ["One", "Two", "Three", "Four"]
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:193: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054a6a7a0>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
>       self.add_input.click()

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054a6a7a0>
key = 'add_input'

    def __getattr__(self, key):
        """
        Makes the web-elements to be accessible directly.
        - For example self.elements = {"textbox": Selector(by=..., select=...),
            Access the element by doing self.textbox directly.
        - It also has implicit wait while finding the element.
          :param key: The key of the element mentioned in self.elements
          :returns: The webelement we are accessing
        """
        try:
>           return self.get_element(key)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054a6a7a0>
key = 'add_input'

    def get_element(self, key):
        """
        Get the web-element.
    
        Note: There is a wait in get_element.
            :param key: The key of the element mentioned in self.elements
            :returns: element The element we are looking for by key
        """
        element = self.elements[key]
>       return self._get_element(element.by, element.select)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054a6a7a0>
by = 'id', select = 'addInputBtn'

    def _get_element(self, by, select):
        """
        Find the element from the page.
            :param by: The type of the selenium locator
            :param select: The selector text of type mentioned in by.
            :returns: The webelement we are accessing
        """
        msg = "by={} select={} Element not found in the page".format(by, select)
>       return self.wait.until(EC.presence_of_element_located((by, select)), msg)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.support.wait.WebDriverWait (session="c1978112063e40c791199967be25113e")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe054b24550>
message = 'by=id select=addInputBtn Element not found in the page'

    def until(self, method, message=''):
        """Calls the method provided with the driver as an argument until the \
        return value is not False."""
        screen = None
        stacktrace = None
    
        end_time = time.time() + self._timeout
        while True:
            try:
                value = method(self._driver)
                if value:
                    return value
            except self._ignored_exceptions as exc:
                screen = getattr(exc, 'screen', None)
                stacktrace = getattr(exc, 'stacktrace', None)
            time.sleep(self._poll)
            if time.time() > end_time:
                break
>       raise TimeoutException(message, screen, stacktrace)
E       selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_select_value_single_select_group_test

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e34250>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e34250>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe054b0bb50>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_select_value_single_select_group_test(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies selected value of Single Select Group Test dropdown in example input one"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
        selected_value = "Two"
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:209: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054b08c70>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
>       self.add_input.click()

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054b08c70>
key = 'add_input'

    def __getattr__(self, key):
        """
        Makes the web-elements to be accessible directly.
        - For example self.elements = {"textbox": Selector(by=..., select=...),
            Access the element by doing self.textbox directly.
        - It also has implicit wait while finding the element.
          :param key: The key of the element mentioned in self.elements
          :returns: The webelement we are accessing
        """
        try:
>           return self.get_element(key)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054b08c70>
key = 'add_input'

    def get_element(self, key):
        """
        Get the web-element.
    
        Note: There is a wait in get_element.
            :param key: The key of the element mentioned in self.elements
            :returns: element The element we are looking for by key
        """
        element = self.elements[key]
>       return self._get_element(element.by, element.select)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054b08c70>
by = 'id', select = 'addInputBtn'

    def _get_element(self, by, select):
        """
        Find the element from the page.
            :param by: The type of the selenium locator
            :param select: The selector text of type mentioned in by.
            :returns: The webelement we are accessing
        """
        msg = "by={} select={} Element not found in the page".format(by, select)
>       return self.wait.until(EC.presence_of_element_located((by, select)), msg)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.support.wait.WebDriverWait (session="07b3742ff6074031be227c4b9de4a6aa")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe054a84be0>
message = 'by=id select=addInputBtn Element not found in the page'

    def until(self, method, message=''):
        """Calls the method provided with the driver as an argument until the \
        return value is not False."""
        screen = None
        stacktrace = None
    
        end_time = time.time() + self._timeout
        while True:
            try:
                value = method(self._driver)
                if value:
                    return value
            except self._ignored_exceptions as exc:
                screen = getattr(exc, 'screen', None)
                stacktrace = getattr(exc, 'stacktrace', None)
            time.sleep(self._poll)
            if time.time() > end_time:
                break
>       raise TimeoutException(message, screen, stacktrace)
E       selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_search_value_single_select_group_test

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e34280>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e34280>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe054ac20b0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_search_value_single_select_group_test(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies singleselect seach funtionality properly"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:224: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054ac37c0>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
>       self.add_input.click()

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webelement.WebElement (session="a4390d49468147f9b8b335c6f71b4724", element="fb969922-a7f8-458f-ba08-84d380592336")>

    def click(self):
        """Clicks the element."""
>       self._execute(Command.CLICK_ELEMENT)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webelement.py:80: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webelement.WebElement (session="a4390d49468147f9b8b335c6f71b4724", element="fb969922-a7f8-458f-ba08-84d380592336")>
command = 'clickElement'
params = {'id': 'fb969922-a7f8-458f-ba08-84d380592336', 'sessionId': 'a4390d49468147f9b8b335c6f71b4724'}

    def _execute(self, command, params=None):
        """Executes a command against the underlying HTML element.
    
        Args:
          command: The name of the command to _execute as a string.
          params: A dictionary of named parameters to send with the command.
    
        Returns:
          The command's JSON response loaded into a dictionary object.
        """
        if not params:
            params = {}
        params['id'] = self._id
>       return self._parent.execute(command, params)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webelement.py:633: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webdriver.WebDriver (session="a4390d49468147f9b8b335c6f71b4724")>
driver_command = 'clickElement'
params = {'id': 'fb969922-a7f8-458f-ba08-84d380592336'}

    def execute(self, driver_command, params=None):
        """
        Sends a command to be executed by a command.CommandExecutor.
    
        :Args:
         - driver_command: The name of the command to execute as a string.
         - params: A dictionary of named parameters to send with the command.
    
        :Returns:
          The command's JSON response loaded into a dictionary object.
        """
        if self.session_id is not None:
            if not params:
                params = {'sessionId': self.session_id}
            elif 'sessionId' not in params:
                params['sessionId'] = self.session_id
    
        params = self._wrap_value(params)
        response = self.command_executor.execute(driver_command, params)
        if response:
>           self.error_handler.check_response(response)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py:321: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7fe054ac1d20>
response = {'status': 404, 'value': '{"value":{"error":"stale element reference","message":"The element with the reference XXXXXX...sys.mjs:244:10\\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:72:30\\n"}}'}

    def check_response(self, response):
        """
        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 status is None or status == ErrorCode.SUCCESS:
            return
        value = None
        message = response.get("message", "")
        screen = response.get("screen", "")
        stacktrace = None
        if isinstance(status, int):
            value_json = response.get('value', None)
            if value_json and isinstance(value_json, basestring):
                import json
                try:
                    value = json.loads(value_json)
                    if len(value.keys()) == 1:
                        value = value['value']
                    status = value.get('error', None)
                    if status is None:
                        status = value["status"]
                        message = value["value"]
                        if not isinstance(message, basestring):
                            value = message
                            message = message.get('message')
                    else:
                        message = value.get('message', None)
                except ValueError:
                    pass
    
        exception_class = ErrorInResponseException
        if status in ErrorCode.NO_SUCH_ELEMENT:
            exception_class = NoSuchElementException
        elif status in ErrorCode.NO_SUCH_FRAME:
            exception_class = NoSuchFrameException
        elif status in ErrorCode.NO_SUCH_WINDOW:
            exception_class = NoSuchWindowException
        elif status in ErrorCode.STALE_ELEMENT_REFERENCE:
            exception_class = StaleElementReferenceException
        elif status in ErrorCode.ELEMENT_NOT_VISIBLE:
            exception_class = ElementNotVisibleException
        elif status in ErrorCode.INVALID_ELEMENT_STATE:
            exception_class = InvalidElementStateException
        elif status in ErrorCode.INVALID_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER:
            exception_class = InvalidSelectorException
        elif status in ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
            exception_class = ElementNotSelectableException
        elif status in ErrorCode.ELEMENT_NOT_INTERACTABLE:
            exception_class = ElementNotInteractableException
        elif status in ErrorCode.INVALID_COOKIE_DOMAIN:
            exception_class = InvalidCookieDomainException
        elif status in ErrorCode.UNABLE_TO_SET_COOKIE:
            exception_class = UnableToSetCookieException
        elif status in ErrorCode.TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.SCRIPT_TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.UNKNOWN_ERROR:
            exception_class = WebDriverException
        elif status in ErrorCode.UNEXPECTED_ALERT_OPEN:
            exception_class = UnexpectedAlertPresentException
        elif status in ErrorCode.NO_ALERT_OPEN:
            exception_class = NoAlertPresentException
        elif status in ErrorCode.IME_NOT_AVAILABLE:
            exception_class = ImeNotAvailableException
        elif status in ErrorCode.IME_ENGINE_ACTIVATION_FAILED:
            exception_class = ImeActivationFailedException
        elif status in ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS:
            exception_class = MoveTargetOutOfBoundsException
        elif status in ErrorCode.JAVASCRIPT_ERROR:
            exception_class = JavascriptException
        elif status in ErrorCode.SESSION_NOT_CREATED:
            exception_class = SessionNotCreatedException
        elif status in ErrorCode.INVALID_ARGUMENT:
            exception_class = InvalidArgumentException
        elif status in ErrorCode.NO_SUCH_COOKIE:
            exception_class = NoSuchCookieException
        elif status in ErrorCode.UNABLE_TO_CAPTURE_SCREEN:
            exception_class = ScreenshotException
        elif status in ErrorCode.ELEMENT_CLICK_INTERCEPTED:
            exception_class = ElementClickInterceptedException
        elif status in ErrorCode.INSECURE_CERTIFICATE:
            exception_class = InsecureCertificateException
        elif status in ErrorCode.INVALID_COORDINATES:
            exception_class = InvalidCoordinatesException
        elif status in ErrorCode.INVALID_SESSION_ID:
            exception_class = InvalidSessionIdException
        elif status in ErrorCode.UNKNOWN_METHOD:
            exception_class = UnknownMethodException
        else:
            exception_class = WebDriverException
        if value == '' or value is None:
            value = response['value']
        if isinstance(value, basestring):
            if exception_class == ErrorInResponseException:
                raise exception_class(response, value)
            raise exception_class(value)
        if message == "" and 'message' in value:
            message = value['message']
    
        screen = None
        if 'screen' in value:
            screen = value['screen']
    
        stacktrace = None
        if 'stackTrace' in value and value['stackTrace']:
            stacktrace = []
            try:
                for frame in value['stackTrace']:
                    line = self._value_or_default(frame, 'lineNumber', '')
                    file = self._value_or_default(frame, 'fileName', '<anonymous>')
                    if line:
                        file = "%s:%s" % (file, line)
                    meth = self._value_or_default(frame, 'methodName', '<anonymous>')
                    if 'className' in frame:
                        meth = "%s.%s" % (frame['className'], meth)
                    msg = "    at %s (%s)"
                    msg = msg % (meth, file)
                    stacktrace.append(msg)
            except TypeError:
                pass
        if exception_class == ErrorInResponseException:
            raise exception_class(response, message)
        elif 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)
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.StaleElementReferenceException: Message: The element with the reference XXXXXXXX-XXXX-XXXX-XXXX-XXXX80592336 is stale; either its node document is not the active document, or it is no longer connected to the DOM

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py:242: StaleElementReferenceException

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_default_value_multiple_select_test

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e35600>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e35600>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe054bbdf60>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_default_value_multiple_select_test(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies default values of Multiple Select Test dropdown in example input one"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:240: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054bbf3a0>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
        self.add_input.click()
>       popoverid = "#" + self.add_input.get_attribute("data-test-popover-id")

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:88: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054bbf3a0>
key = 'add_input'

    def __getattr__(self, key):
        """
        Makes the web-elements to be accessible directly.
        - For example self.elements = {"textbox": Selector(by=..., select=...),
            Access the element by doing self.textbox directly.
        - It also has implicit wait while finding the element.
          :param key: The key of the element mentioned in self.elements
          :returns: The webelement we are accessing
        """
        try:
>           return self.get_element(key)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054bbf3a0>
key = 'add_input'

    def get_element(self, key):
        """
        Get the web-element.
    
        Note: There is a wait in get_element.
            :param key: The key of the element mentioned in self.elements
            :returns: element The element we are looking for by key
        """
        element = self.elements[key]
>       return self._get_element(element.by, element.select)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054bbf3a0>
by = 'id', select = 'addInputBtn'

    def _get_element(self, by, select):
        """
        Find the element from the page.
            :param by: The type of the selenium locator
            :param select: The selector text of type mentioned in by.
            :returns: The webelement we are accessing
        """
        msg = "by={} select={} Element not found in the page".format(by, select)
>       return self.wait.until(EC.presence_of_element_located((by, select)), msg)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.support.wait.WebDriverWait (session="44cc6b35e0f14ffbaa6b48045931124a")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe054a6bd00>
message = 'by=id select=addInputBtn Element not found in the page'

    def until(self, method, message=''):
        """Calls the method provided with the driver as an argument until the \
        return value is not False."""
        screen = None
        stacktrace = None
    
        end_time = time.time() + self._timeout
        while True:
            try:
                value = method(self._driver)
                if value:
                    return value
            except self._ignored_exceptions as exc:
                screen = getattr(exc, 'screen', None)
                stacktrace = getattr(exc, 'stacktrace', None)
            time.sleep(self._poll)
            if time.time() > end_time:
                break
>       raise TimeoutException(message, screen, stacktrace)
E       selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_list_multiple_select_test

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e35de0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e35de0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe054949480>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_list_multiple_select_test(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies values of Multiple Select Test dropdown in example input one"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:255: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe05494bfd0>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
>       self.add_input.click()

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe05494bfd0>
key = 'add_input'

    def __getattr__(self, key):
        """
        Makes the web-elements to be accessible directly.
        - For example self.elements = {"textbox": Selector(by=..., select=...),
            Access the element by doing self.textbox directly.
        - It also has implicit wait while finding the element.
          :param key: The key of the element mentioned in self.elements
          :returns: The webelement we are accessing
        """
        try:
>           return self.get_element(key)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe05494bfd0>
key = 'add_input'

    def get_element(self, key):
        """
        Get the web-element.
    
        Note: There is a wait in get_element.
            :param key: The key of the element mentioned in self.elements
            :returns: element The element we are looking for by key
        """
        element = self.elements[key]
>       return self._get_element(element.by, element.select)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe05494bfd0>
by = 'id', select = 'addInputBtn'

    def _get_element(self, by, select):
        """
        Find the element from the page.
            :param by: The type of the selenium locator
            :param select: The selector text of type mentioned in by.
            :returns: The webelement we are accessing
        """
        msg = "by={} select={} Element not found in the page".format(by, select)
>       return self.wait.until(EC.presence_of_element_located((by, select)), msg)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.support.wait.WebDriverWait (session="7af23dd7fd6849d9aac3aea0a1a827ff")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe054b9ca60>
message = 'by=id select=addInputBtn Element not found in the page'

    def until(self, method, message=''):
        """Calls the method provided with the driver as an argument until the \
        return value is not False."""
        screen = None
        stacktrace = None
    
        end_time = time.time() + self._timeout
        while True:
            try:
                value = method(self._driver)
                if value:
                    return value
            except self._ignored_exceptions as exc:
                screen = getattr(exc, 'screen', None)
                stacktrace = getattr(exc, 'stacktrace', None)
            time.sleep(self._poll)
            if time.time() > end_time:
                break
>       raise TimeoutException(message, screen, stacktrace)
E       selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_select_value_multiple_select_test

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e36140>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e36140>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe054b44760>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_select_value_multiple_select_test(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies selected single value of Multiple Select Test dropdown in example input one"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
        selected_value = ["A"]
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:273: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054b44ca0>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
>       self.add_input.click()

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054b44ca0>
key = 'add_input'

    def __getattr__(self, key):
        """
        Makes the web-elements to be accessible directly.
        - For example self.elements = {"textbox": Selector(by=..., select=...),
            Access the element by doing self.textbox directly.
        - It also has implicit wait while finding the element.
          :param key: The key of the element mentioned in self.elements
          :returns: The webelement we are accessing
        """
        try:
>           return self.get_element(key)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054b44ca0>
key = 'add_input'

    def get_element(self, key):
        """
        Get the web-element.
    
        Note: There is a wait in get_element.
            :param key: The key of the element mentioned in self.elements
            :returns: element The element we are looking for by key
        """
        element = self.elements[key]
>       return self._get_element(element.by, element.select)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe054b44ca0>
by = 'id', select = 'addInputBtn'

    def _get_element(self, by, select):
        """
        Find the element from the page.
            :param by: The type of the selenium locator
            :param select: The selector text of type mentioned in by.
            :returns: The webelement we are accessing
        """
        msg = "by={} select={} Element not found in the page".format(by, select)
>       return self.wait.until(EC.presence_of_element_located((by, select)), msg)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.support.wait.WebDriverWait (session="b0197816ac154f79b37d4df9af860514")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe05499c490>
message = 'by=id select=addInputBtn Element not found in the page'

    def until(self, method, message=''):
        """Calls the method provided with the driver as an argument until the \
        return value is not False."""
        screen = None
        stacktrace = None
    
        end_time = time.time() + self._timeout
        while True:
            try:
                value = method(self._driver)
                if value:
                    return value
            except self._ignored_exceptions as exc:
                screen = getattr(exc, 'screen', None)
                stacktrace = getattr(exc, 'stacktrace', None)
            time.sleep(self._poll)
            if time.time() > end_time:
                break
>       raise TimeoutException(message, screen, stacktrace)
E       selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_select_multiple_values_multiple_select_test

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e348b0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e348b0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe0549c2bf0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_select_multiple_values_multiple_select_test(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies selected multiple values of Multiple Select Test dropdown in example input one"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
        selected_values = ["A", "B"]
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:291: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe0549c1ea0>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
>       self.add_input.click()

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webelement.WebElement (session="5b31a2c7efd54ebdbfc1a39aad8f4355", element="3d0b7e94-6dcc-480f-9e93-d979a18ca536")>

    def click(self):
        """Clicks the element."""
>       self._execute(Command.CLICK_ELEMENT)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webelement.py:80: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webelement.WebElement (session="5b31a2c7efd54ebdbfc1a39aad8f4355", element="3d0b7e94-6dcc-480f-9e93-d979a18ca536")>
command = 'clickElement'
params = {'id': '3d0b7e94-6dcc-480f-9e93-d979a18ca536', 'sessionId': '5b31a2c7efd54ebdbfc1a39aad8f4355'}

    def _execute(self, command, params=None):
        """Executes a command against the underlying HTML element.
    
        Args:
          command: The name of the command to _execute as a string.
          params: A dictionary of named parameters to send with the command.
    
        Returns:
          The command's JSON response loaded into a dictionary object.
        """
        if not params:
            params = {}
        params['id'] = self._id
>       return self._parent.execute(command, params)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webelement.py:633: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.webdriver.WebDriver (session="5b31a2c7efd54ebdbfc1a39aad8f4355")>
driver_command = 'clickElement'
params = {'id': '3d0b7e94-6dcc-480f-9e93-d979a18ca536'}

    def execute(self, driver_command, params=None):
        """
        Sends a command to be executed by a command.CommandExecutor.
    
        :Args:
         - driver_command: The name of the command to execute as a string.
         - params: A dictionary of named parameters to send with the command.
    
        :Returns:
          The command's JSON response loaded into a dictionary object.
        """
        if self.session_id is not None:
            if not params:
                params = {'sessionId': self.session_id}
            elif 'sessionId' not in params:
                params['sessionId'] = self.session_id
    
        params = self._wrap_value(params)
        response = self.command_executor.execute(driver_command, params)
        if response:
>           self.error_handler.check_response(response)

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py:321: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7fe0549c3220>
response = {'status': 404, 'value': '{"value":{"error":"stale element reference","message":"The element with the reference XXXXXX...sys.mjs:244:10\\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:72:30\\n"}}'}

    def check_response(self, response):
        """
        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 status is None or status == ErrorCode.SUCCESS:
            return
        value = None
        message = response.get("message", "")
        screen = response.get("screen", "")
        stacktrace = None
        if isinstance(status, int):
            value_json = response.get('value', None)
            if value_json and isinstance(value_json, basestring):
                import json
                try:
                    value = json.loads(value_json)
                    if len(value.keys()) == 1:
                        value = value['value']
                    status = value.get('error', None)
                    if status is None:
                        status = value["status"]
                        message = value["value"]
                        if not isinstance(message, basestring):
                            value = message
                            message = message.get('message')
                    else:
                        message = value.get('message', None)
                except ValueError:
                    pass
    
        exception_class = ErrorInResponseException
        if status in ErrorCode.NO_SUCH_ELEMENT:
            exception_class = NoSuchElementException
        elif status in ErrorCode.NO_SUCH_FRAME:
            exception_class = NoSuchFrameException
        elif status in ErrorCode.NO_SUCH_WINDOW:
            exception_class = NoSuchWindowException
        elif status in ErrorCode.STALE_ELEMENT_REFERENCE:
            exception_class = StaleElementReferenceException
        elif status in ErrorCode.ELEMENT_NOT_VISIBLE:
            exception_class = ElementNotVisibleException
        elif status in ErrorCode.INVALID_ELEMENT_STATE:
            exception_class = InvalidElementStateException
        elif status in ErrorCode.INVALID_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER:
            exception_class = InvalidSelectorException
        elif status in ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
            exception_class = ElementNotSelectableException
        elif status in ErrorCode.ELEMENT_NOT_INTERACTABLE:
            exception_class = ElementNotInteractableException
        elif status in ErrorCode.INVALID_COOKIE_DOMAIN:
            exception_class = InvalidCookieDomainException
        elif status in ErrorCode.UNABLE_TO_SET_COOKIE:
            exception_class = UnableToSetCookieException
        elif status in ErrorCode.TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.SCRIPT_TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.UNKNOWN_ERROR:
            exception_class = WebDriverException
        elif status in ErrorCode.UNEXPECTED_ALERT_OPEN:
            exception_class = UnexpectedAlertPresentException
        elif status in ErrorCode.NO_ALERT_OPEN:
            exception_class = NoAlertPresentException
        elif status in ErrorCode.IME_NOT_AVAILABLE:
            exception_class = ImeNotAvailableException
        elif status in ErrorCode.IME_ENGINE_ACTIVATION_FAILED:
            exception_class = ImeActivationFailedException
        elif status in ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS:
            exception_class = MoveTargetOutOfBoundsException
        elif status in ErrorCode.JAVASCRIPT_ERROR:
            exception_class = JavascriptException
        elif status in ErrorCode.SESSION_NOT_CREATED:
            exception_class = SessionNotCreatedException
        elif status in ErrorCode.INVALID_ARGUMENT:
            exception_class = InvalidArgumentException
        elif status in ErrorCode.NO_SUCH_COOKIE:
            exception_class = NoSuchCookieException
        elif status in ErrorCode.UNABLE_TO_CAPTURE_SCREEN:
            exception_class = ScreenshotException
        elif status in ErrorCode.ELEMENT_CLICK_INTERCEPTED:
            exception_class = ElementClickInterceptedException
        elif status in ErrorCode.INSECURE_CERTIFICATE:
            exception_class = InsecureCertificateException
        elif status in ErrorCode.INVALID_COORDINATES:
            exception_class = InvalidCoordinatesException
        elif status in ErrorCode.INVALID_SESSION_ID:
            exception_class = InvalidSessionIdException
        elif status in ErrorCode.UNKNOWN_METHOD:
            exception_class = UnknownMethodException
        else:
            exception_class = WebDriverException
        if value == '' or value is None:
            value = response['value']
        if isinstance(value, basestring):
            if exception_class == ErrorInResponseException:
                raise exception_class(response, value)
            raise exception_class(value)
        if message == "" and 'message' in value:
            message = value['message']
    
        screen = None
        if 'screen' in value:
            screen = value['screen']
    
        stacktrace = None
        if 'stackTrace' in value and value['stackTrace']:
            stacktrace = []
            try:
                for frame in value['stackTrace']:
                    line = self._value_or_default(frame, 'lineNumber', '')
                    file = self._value_or_default(frame, 'fileName', '<anonymous>')
                    if line:
                        file = "%s:%s" % (file, line)
                    meth = self._value_or_default(frame, 'methodName', '<anonymous>')
                    if 'className' in frame:
                        meth = "%s.%s" % (frame['className'], meth)
                    msg = "    at %s (%s)"
                    msg = msg % (meth, file)
                    stacktrace.append(msg)
            except TypeError:
                pass
        if exception_class == ErrorInResponseException:
            raise exception_class(response, message)
        elif 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)
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.StaleElementReferenceException: Message: The element with the reference XXXXXXXX-XXXX-XXXX-XXXX-XXXXa18ca536 is stale; either its node document is not the active document, or it is no longer connected to the DOM

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py:242: StaleElementReferenceException

Check failure on line 0 in test-results/test.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1

pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_deselect_multiple_select_test

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e348e0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7fe054e348e0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe0549a36a0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe054da4be0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_example_input_one_deselect_multiple_select_test(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies deselect in Multiple Select Test dropdown in example input one"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
        selected_values = ["A", "B"]
>       input_page.create_new_input.select("Example Input One")

tests/ui/test_splunk_ta_example_addon_input_1.py:309: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe0549a1270>
value = 'Example Input One'

    def select(self, value):
        """
        Selects the value we want from the type list
            :param value: The value in which we want to select
            :return: Returns True if successful, otherwise raises an error
        """
    
>       self.add_input.click()

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe0549a1270>
key = 'add_input'

    def __getattr__(self, key):
        """
        Makes the web-elements to be accessible directly.
        - For example self.elements = {"textbox": Selector(by=..., select=...),
            Access the element by doing self.textbox directly.
        - It also has implicit wait while finding the element.
          :param key: The key of the element mentioned in self.elements
          :returns: The webelement we are accessing
        """
        try:
>           return self.get_element(key)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe0549a1270>
key = 'add_input'

    def get_element(self, key):
        """
        Get the web-element.
    
        Note: There is a wait in get_element.
            :param key: The key of the element mentioned in self.elements
            :returns: element The element we are looking for by key
        """
        element = self.elements[key]
>       return self._get_element(element.by, element.select)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7fe0549a1270>
by = 'id', select = 'addInputBtn'

    def _get_element(self, by, select):
        """
        Find the element from the page.
            :param by: The type of the selenium locator
            :param select: The selector text of type mentioned in by.
            :returns: The webelement we are accessing
        """
        msg = "by={} select={} Element not found in the page".format(by, select)
>       return self.wait.until(EC.presence_of_element_located((by, select)), msg)

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.support.wait.WebDriverWait (session="893b54cf2d684c9794d9fb4a2a0a18c8")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe0548ddf00>
message = 'by=id select=addInputBtn Element not found in the page'

    def until(self, method, message=''):
        """Calls the method provided with the driver as an argument until the \
        return value is not False."""
        screen = None
        stacktrace = None
    
        end_time = time.time() + self._timeout
        while True:
            try:
                value = method(self._driver)
                if value:
                    return value
            except self._ignored_exceptions as exc:
                screen = getattr(exc, 'screen', None)
                stacktrace = getattr(exc, 'stacktrace', None)
            time.sleep(self._poll)
            if time.time() > end_time:
                break
>       raise TimeoutException(message, screen, stacktrace)
E       selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page

/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException