id

returns an element that is matching the id name.

Arguments

Source


def id(self, i):
    for node in self:
        if node.get_attr('id') == i:
            return node
    return None