code: def get_device_element(self, ain):
          
          elements = self.get_device_elements()
          for element in elements:
              if element.getAttribute('identifier') == ain:
                  return element
          return None
docs: Get the DOM element for the specified device.