symfony / panther

A browser testing and web crawling library for PHP and Symfony
MIT License
2.91k stars 213 forks source link

Allow input type checkbox without need to set attribute "name" #550

Open robertfausk opened 2 years ago

robertfausk commented 2 years ago

Currently all checkboxes must have a name attribute to be usable with symfony/panther and the ChoiceFormField.

This PR allows instances of WebDriverCheckboxes without a name attribute, e.g.:

<input type="checkbox" value="noNameCheckbox">