diff --git a/lib/behat/form_field/behat_form_select.php b/lib/behat/form_field/behat_form_select.php index ac63c01b337..19e0cf02dad 100644 --- a/lib/behat/form_field/behat_form_select.php +++ b/lib/behat/form_field/behat_form_select.php @@ -278,7 +278,7 @@ class behat_form_select extends behat_form_field { */ protected function get_selected_options($returntexts = true) { - $method = 'getText'; + $method = 'getHtml'; if ($returntexts === false) { $method = 'getValue'; }