Skip to content

[DomCrawler] Allow selecting buttons by their value#60781

Merged
nicolas-grekas merged 1 commit intosymfony:6.4from
MatTheCat:ticket_58509
Jun 15, 2025
Merged

[DomCrawler] Allow selecting buttons by their value#60781
nicolas-grekas merged 1 commit intosymfony:6.4from
MatTheCat:ticket_58509

Conversation

@MatTheCat
Copy link
Copy Markdown
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
Copy Markdown
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
This was referenced Jun 28, 2025
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