Can't check radio button with number value
When radio buttons have number values like
<input type="radio" name="radio" value="1">
checking the radio button fails. The reason is that this number value is converted from string to a number in ChromeDriver
$json_value = ctype_digit($value) ? $value : json_encode($value);
and then compared with ===
if (field.value === expected_value) {
I created a test project https://gitlab.com/bjoerne/chrome-mink-driver-test which tests checking a radio button. A letter value is no problem, but the test with a number value fails (Commit 19751a75375ae534cbd5971f03d5f76c7cb61f19). With a fixed library (fork https://gitlab.com/bjoerne/chrome-mink-driver; comparison with ==) the tests pass (Commit f089555179a57ed134209457c785765f1b74196a).