Skip to content

Commit 81cdc89

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: [BrowserKit] Fix `submitForm` behaviour
2 parents dfd0c43 + 7b1c21d commit 81cdc89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/browser_kit.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ field values, etc.) before submitting it::
143143
$crawler = $client->request('GET', 'https://github.com/login');
144144

145145
// find the form with the 'Log in' button and submit it
146-
// 'Log in' can be the text content, id, value or name of a <button> or <input type="submit">
146+
// 'Log in' can be the text content, id or name of a <button> or <input type="submit">
147147
$client->submitForm('Log in');
148148

149149
// the second optional argument lets you override the default form field values

testing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -864,8 +864,8 @@ Use the ``submitForm()`` method to submit the form that contains the given butto
864864
'comment_form[content]' => '...',
865865
]);
866866

867-
The first argument of ``submitForm()`` is the text content, ``id``, ``value`` or
868-
``name`` of any ``<button>`` or ``<input type="submit">`` included in the form.
867+
The first argument of ``submitForm()`` is the text content, ``id`` or ``name``
868+
of any ``<button>`` or ``<input type="submit">`` included in the form.
869869
The second optional argument is used to override the default form field values.
870870

871871
.. note::

0 commit comments

Comments
 (0)