File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -324,9 +324,15 @@ Forms
324324~~~~~
325325
326326Special 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
330336a :class: `Symfony\\ Component\\ DomCrawler\\ Form ` object that represents the
331337form that the button lives in::
332338
You can’t perform that action at this time.
0 commit comments