

def set_input_by_number(self, number, value):
    '\n        Set the value of form element by its number in the form\n\n        :param number: number of element\n        :param value: value which should be set to element\n        '
    sel = XpathSelector(self.form)
    elem = sel.select('.//input[@type="text"]')[number].node()
    return self.set_input(elem.get('name'), value)

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