Skip to content

Commit 3a0050a

Browse files
committed
fix #310430: DomCrawler component selectButton() docs update
1 parent bcfc3de commit 3a0050a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

components/dom_crawler.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,15 @@ Forms
324324
~~~~~
325325

326326
Special treatment is also given to forms. A ``selectButton()`` method is
327-
available on the Crawler which returns another Crawler that matches a button
328-
(``input[type=submit]``, ``input[type=image]``, or a ``button``) with the
329-
given text. This method is especially useful because you can use it to return
327+
available on the Crawler which returns another Crawler that matches
328+
``button`` and ``submit`` input tags. It uses several parts of the buttons to
329+
find them:
330+
331+
* The value attribute value;
332+
* The id or alt attribute value for images;
333+
* The id or name attribute value for button tags.
334+
335+
This method is especially useful because you can use it to return
330336
a :class:`Symfony\\Component\\DomCrawler\\Form` object that represents the
331337
form that the button lives in::
332338

0 commit comments

Comments
 (0)