def METHOD_NAME(self, file_name: str):
    """imports the a license file
    :remarks:
        On firefox the file input entry is not cleared after a dialog
        re-open. So we have to do this explicitly. Otherwiser the UI ends
        up in an undefined state.
    :param file_name: the file path of provided xml token file
    :raises: FileUploadException if the import failed
    """
    self.manage.alert_box_handler.clear_messages()
    # ----------------------------------------------------------------- --
    # get the file upload input and fill in the upload file name and
    # submit the data
    file_name_lineedit = self.driver.find_element(By.ID, self.file_input)
    file_name_lineedit.clear()
    file_name_lineedit.send_keys(file_name)
    self.driver.find_element(By.ID, self.file_submit).click()
    # ----------------------------------------------------------------- --
    # submit the upload request and wait till its finished, incl the
    # appearance of the message bar
    self.manage.wait_for_waiting_finished()
    self.manage_ui.close_all_dialogs()
    self.manage.alert_box_handler.wait_until_alert_box_visible()
    # ----------------------------------------------------------------- --
    # lookup if we have success in the message bar
    # - on error raise exception
    assert (
        self.manage.alert_box_handler.amount_of_lines == 1
    ), "Expect exactly one message to be shown"
    last_line = self.manage.alert_box_handler.last_line
    if last_line and last_line.type == "error":
        raise FileUploadException("Import failure: %r" % last_line.text)