From df1a42419f8bce48b605087937320af1ec968116 Mon Sep 17 00:00:00 2001 From: Raul Gallegos Date: Sat, 14 Jan 2017 20:45:20 -0500 Subject: [PATCH] adding formid to FormRequest documentation --- docs/topics/request-response.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst index 664a7239f..a1bd1e146 100644 --- a/docs/topics/request-response.rst +++ b/docs/topics/request-response.rst @@ -358,7 +358,7 @@ fields with form data from :class:`Response` objects. The :class:`FormRequest` objects support the following class method in addition to the standard :class:`Request` methods: - .. classmethod:: FormRequest.from_response(response, [formname=None, formnumber=0, formdata=None, formxpath=None, formcss=None, clickdata=None, dont_click=False, ...]) + .. classmethod:: FormRequest.from_response(response, [formname=None, formid=None, formnumber=0, formdata=None, formxpath=None, formcss=None, clickdata=None, dont_click=False, ...]) Returns a new :class:`FormRequest` object with its form field values pre-populated with those found in the HTML ``
`` element contained @@ -383,6 +383,9 @@ fields with form data from :class:`Response` objects. :param formname: if given, the form with name attribute set to this value will be used. :type formname: string + :param formid: if given, the form with id attribute set to this value will be used. + :type formid: string + :param formxpath: if given, the first form that matches the xpath will be used. :type formxpath: string @@ -421,6 +424,9 @@ fields with form data from :class:`Response` objects. .. versionadded:: 1.1.0 The ``formcss`` parameter. + .. versionadded:: 1.1.0 + The ``formid`` parameter. + Request usage examples ----------------------