lxml.html.formfill module

exception lxml.html.formfill.FormNotFound[source]

Bases: LookupError

Raised when no form can be found

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
class lxml.html.formfill.DefaultErrorCreator(**kw)[source]

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)[source]
lxml.html.formfill._check(el, check)[source]
lxml.html.formfill._fill_form(el, values)[source]
lxml.html.formfill._fill_multiple(input, value)[source]
lxml.html.formfill._fill_single(input, value)[source]
lxml.html.formfill._find_elements_for_name(form, name, error)[source]
lxml.html.formfill._find_form(el, form_id=None, form_index=None)[source]
lxml.html.formfill._find_form_ids(el)[source]
lxml.html.formfill._insert_error(el, error, error_class, error_creator)[source]
lxml.html.formfill._select(el, select)[source]
lxml.html.formfill._takes_multiple(input)[source]
lxml.html.formfill.fill_form(el, values, form_id=None, form_index=None)[source]
lxml.html.formfill.fill_form_html(html, values, form_id=None, form_index=None)[source]
lxml.html.formfill.insert_errors(el, errors, form_id=None, form_index=None, error_class='error', error_creator=<lxml.html.formfill.DefaultErrorCreator object>)[source]
lxml.html.formfill.insert_errors_html(html, values, **kw)[source]