Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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.