@staticmethod
def assert_element_tag(el, expected_tag):
    """Method to assert that the tag of an element is as expected.

        :param el: element
        :rtype el: str
        :param expected_tag: expected tag
        :type expected_tag: str
        """
    if expected_tag:
        assert el.tag == expected_tag, 'Element should have tag {}, but has tag: {}.'.format(
            expected_tag, el.tag)
