

def set_input_by_id(self, _id, value):
    '\n        Set the value of form element by its `id` attribute.\n\n        :param _id: id of element\n        :param value: value which should be set to element\n        '
    xpath = ('.//*[@id="%s"]' % _id)
    if (self._lxml_form is None):
        self.choose_form_by_element(xpath)
    sel = XpathSelector(self.form)
    elem = sel.select(xpath).node()
    return self.set_input(elem.get('name'), value)

dataset/ETHPy150Open lorien/grab/grab/document.py FormExtension.set_input_by_id/original