Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

File Size: 101 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/form_field/behat_form_field.php

Defines 1 class

behat_form_select_menu:: (4 methods):
  set_value()
  get_value()
  has_option()
  find_option()


Class: behat_form_select_menu  - X-Ref

Custom interaction with select_menu elements

set_value($value)   X-Ref
Sets the value of the select menu field.

param: string $value The string that is used to identify an option within the select menu. If the string

get_value()   X-Ref
No description

has_option(string $option)   X-Ref
Checks whether a given option exists in the select menu field.

param: string $option The string that is used to identify an option within the select menu. If the string
return: bool Whether the option exists in the select menu field or not.

find_option(string $option)   X-Ref
Finds and returns a given option from the select menu field.

param: string $option The string that is used to identify an option within the select menu. If the string
return: NodeElement|null The option element or null if it cannot be found.