close AttributeError: 'str' object has no attribute 'Text' #4