Skip to content

Commit 038a7d2

Browse files
committed
minor #5646 Moved comment to the right place (mickaelandrieu)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5646). Discussion ---------- Moved comment to the right place | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | >= 2.3 afaik | Fixed tickets | none I think this move is required because we can think at this moment that the function ``link()`` send the click that is wrong (link() function create a Link object from the selector or throw an exception). Commits ------- 9353afc Moved comment to the right place
2 parents 74ad0eb + 9353afc commit 038a7d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

book/testing.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ expression or a CSS selector, then use the client to click on it. For example::
196196
$link = $crawler
197197
->filter('a:contains("Greet")') // find all links with the text "Greet"
198198
->eq(1) // select the second link in the list
199-
->link() // and click it
199+
->link()
200200
;
201-
201+
202+
// and click it
202203
$crawler = $client->click($link);
203204

204205
Submitting a form is very similar: select a form button, optionally override

0 commit comments

Comments
 (0)