Skip to content

[BrowserKit] Add argument $serverParameters to click() and clickLink() #18659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

alexandre-daubois
Copy link
Member

Fix #18654

$client = new Client();
$client->request('GET', '/product/123');

// Works both with `click()`...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Works both with `click()`...
// works both with `click()`...

@@ -112,6 +112,28 @@ provides access to the link properties (e.g. ``$link->getMethod()``,
$link = $crawler->selectLink('Go elsewhere...')->link();
$client->click($link);

The :method:`Symfony\\Component\\BrowserKit\\AbstractBrowser::click` and
:method:`Symfony\\Component\\BrowserKit\\AbstractBrowser::clickLink` methods
can take a second, optional parameter, which is ``serverParameters``. This
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
can take a second, optional parameter, which is ``serverParameters``. This
can take optional ``serverParameters``. This

Easier to read ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I rephrased! 🙂

@OskarStark
Copy link
Contributor

Thank you Alexandre.

@OskarStark OskarStark merged commit cb998a2 into symfony:6.4 Aug 1, 2023
@alexandre-daubois alexandre-daubois deleted the clicking-links branch August 1, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BrowserKit] Add argument $serverParameters to click() and clickLink()
3 participants