def find_missing_identifiers()

in commands/FBXCTestCommands.py [0:0]


    def find_missing_identifiers(self, status_bar):
        """
        Find element which has a label but doesn't have an identifier

        :param bool status_bar: Print status bar items
        :return: Hierarchy structure with items which has a label but doesn't have an identifier
        :rtype: _ElementList | None
        """
        # Do not print status bar items
        if status_bar is not True and self.type_value == XCUIElementType.StatusBar:
            return None

        children_missing = [
            XCElementSnapshot(e, self.language).find_missing_identifiers(
                status_bar=status_bar
            )
            for e in self.children_list
        ]
        children_missing = [x for x in children_missing if x is not None]

        # Self and its children are not missing identifiers
        if self.is_missing_identifier is False and len(children_missing) == 0:
            return None

        return _ElementList(self, children_missing)