'Gets elements based on the type, which is function from text.py, draw.py etc.'

def getElementsByType(self, element):

    obj = element(check_grammar=False)
    return self._getElementsByObj(obj, [])
