Arguments
- Name: i, Type: str
- id name
Source
def id(self, i):
for node in self:
if node.get_attr('id') == i:
return node
return None
returns an element that is matching the id name.
def id(self, i):
for node in self:
if node.get_attr('id') == i:
return node
return None