lxml.html.formfill module — lxml documentation

# lxml.html.formfill module

exception lxml.html.formfill.FormNotFound

  Bases: `LookupError`

  Raised when no form can be found

class lxml.html.formfill.DefaultErrorCreator(**kw)

  Bases: `object`

  block_inside = True
  default_message = 'Invalid'
  error_block_class = 'error-block'
  error_container_tag = 'div'
  error_message_class = 'error-message'
  insert_before = True

lxml.html.formfill._add_class(el, class_name)

lxml.html.formfill._check(el, check)

lxml.html.formfill._fill_form(el, values)

lxml.html.formfill._fill_multiple(input, value)

lxml.html.formfill._fill_single(input, value)

lxml.html.formfill._find_elements_for_name(form, name, error)

lxml.html.formfill._find_form(el, form_id=None, form_index=None)

lxml.html.formfill._find_form_ids(el)

lxml.html.formfill._insert_error(el, error, error_class, error_creator)

lxml.html.formfill._select(el, select)

lxml.html.formfill._takes_multiple(input)

lxml.html.formfill.fill_form(el, values, form_id=None, form_index=None)

lxml.html.formfill.fill_form_html(html, values, form_id=None, form_index=None)

lxml.html.formfill.insert_errors(el, errors, form_id=None, form_index=None, error_class='error', error_creator=<lxml.html.formfill.DefaultErrorCreator object>)

lxml.html.formfill.insert_errors_html(html, values, **kw)