Skip to content

Commit a910f52

Browse files
Reword
1 parent 3a0050a commit a910f52

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

components/dom_crawler.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,11 @@ 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
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.
327+
available on the Crawler which returns another Crawler that matches ``<button>``
328+
or ``<input type="submit">`` or ``<input type="button">`` elements (or an
329+
``<img>`` element inside them). The string given as argument is looked for in
330+
the ``id``, ``alt``, ``name``, and ``value`` attributes and the text content of
331+
those elements.
334332

335333
This method is especially useful because you can use it to return
336334
a :class:`Symfony\\Component\\DomCrawler\\Form` object that represents the

0 commit comments

Comments
 (0)