get_element_by_id method

get_element_by_id

Returns the Element that has an ID attribute with the given value. If no such element exists, this returns null. If more than one element has an ID attribute with that value, what is returned is undefined.

Returns

The Element.

def get_element_by_id(self, element_id):
    ...
ParameterTypeDescription
element_idstrThe element id.

See Also