Skip to content

Commit 16db597

Browse files
uikolasweaverryan
authored andcommitted
Changed text how to get button label
1 parent 096c1c0 commit 16db597

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dom_crawler.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@ form that the button lives in::
340340

341341
// button example: <button id="my-super-button" type="submit">My super button</button>
342342
343-
// you can get button my its name
343+
// you can get button my its label
344344
$form = $crawler->selectButton('My super button')->form();
345345
346-
// or by button id (#my-super-button) if button doesn't have a name
346+
// or by button id (#my-super-button) if button doesn't have a label
347347
$form = $crawler->selectButton('my-super-button')->form();
348348
349349
// or you can filter whole form, for example a form has a class attribute: <form class="form-vertical" method="POST">

0 commit comments

Comments
 (0)