Skip to content

[DomCrawler] Allow selecting buttons by their value #60781

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
Jun 15, 2025

Conversation

MatTheCat
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #58509
License MIT

Crawler::selectButton can select an input by its value, which is tested but not documented.

However, it cannot select a button by its value. I don’t think this is intentional, which is why I opened this PR as a bugfix.

I also updated Crawler::selectButton’s PHPDoc and tests to better reflect what it does.

@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit a665090 into symfony:6.4 Jun 15, 2025
11 checks passed
@MatTheCat MatTheCat deleted the ticket_58509 branch June 15, 2025 10:31
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.

3 participants