diff --git a/src/Concerns/InteractsWithElements.php b/src/Concerns/InteractsWithElements.php index a5c53649c..45c608e58 100644 --- a/src/Concerns/InteractsWithElements.php +++ b/src/Concerns/InteractsWithElements.php @@ -187,6 +187,10 @@ public function select($field, $value = null) if (is_null($value)) { $options[array_rand($options)]->click(); } else { + if (is_bool($value)) { + $value = $value ? '1' : '0'; + } + foreach ($options as $option) { if ((string) $option->getAttribute('value') === (string) $value) { $option->click();