I am testing a form using WebTest. However, somes fields are created dynamically using JS, and thus these fields are not in the Form. I have an error when I try to set one of these fields:
>>> resp.form['new_field'] = 'value'
or
>>> resp.form.set('new_field', 'value')
or
>>> resp.form.set('new_field', 'value', index=0)
or
>>> resp.form['new_field'].force_value('value')
*** AssertionError: No field by the name 'new_field' found
Is there a way to create a field ?