def get_element_by_name(self, el_name, el_idx=0):
        """
    Args:
      el_name : str
        Name of element to get.

      el_idx : int
        Index of element to use as base in the event that there are multiple sibling
        elements with the same name.

    Returns:
      element : The selected element.
    """
        el_list = self.get_element_list_by_name(el_name)
        try:
            return el_list[el_idx]
        except IndexError:
            raise SimpleXMLWrapperException(
                'Element not found. element_name="{}" requested_idx={} '
                'available_elements={}'.format(el_name, el_idx, len(el_list))
            )
def get_element_by_name ( self , el_name , el_idx = 0 ) : el_list = self . get_element_list_by_name ( el_name ) try : return el_list [ el_idx ] except IndexError : raise SimpleXMLWrapperException ( 'Element not found. element_name="{}" requested_idx={} ' 'available_elements={}' . format ( el_name , el_idx , len ( el_list ) ) )
Args:
      el_name : str
        Name of element to get.

      el_idx : int
        Index of element to use as base in the event that there are multiple sibling
        elements with the same name.

    Returns:
      element : The selected element.