Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7b1c21d

Browse filesBrowse files
committed
minor #20916 [BrowserKit] Fix submitForm behaviour (JorickPepin)
This PR was merged into the 6.4 branch. Discussion ---------- [BrowserKit] Fix `submitForm` behaviour See symfony/symfony#60264 Commits ------- ce4cd4d [BrowserKit] Fix `submitForm` behaviour
2 parents aab76b8 + ce4cd4d commit 7b1c21d
Copy full SHA for 7b1c21d

File tree

2 files changed

+3
-3
lines changed
Filter options

2 files changed

+3
-3
lines changed

‎components/browser_kit.rst

Copy file name to clipboardExpand all lines: components/browser_kit.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ field values, etc.) before submitting it::
147147
$crawler = $client->request('GET', 'https://github.com/login');
148148

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

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

‎testing.rst

Copy file name to clipboardExpand all lines: testing.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,8 +875,8 @@ Use the ``submitForm()`` method to submit the form that contains the given butto
875875
'comment_form[content]' => '...',
876876
]);
877877

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

882882
.. note::

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.