[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Steps definitions related with forms.
Copyright: | 2012 David Monllaó |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 372 lines (15 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 2 files lib/behat/behat_base.php lib/behat/behat_field_manager.php |
behat_forms:: (13 methods):
press_button()
i_set_the_following_fields_to_these_values()
i_expand_all_fieldsets()
expand_all_fields()
i_set_the_field_to()
i_set_the_field_with_xpath_to()
the_field_matches_value()
the_field_does_not_match_value()
the_following_fields_match_these_values()
the_following_fields_do_not_match_these_values()
the_select_box_should_contain()
the_select_box_should_not_contain()
set_field_value()
Class: behat_forms - X-Ref
Forms-related steps definitions.press_button($button) X-Ref |
Presses button with specified id|name|title|alt|value. param: string $button |
i_set_the_following_fields_to_these_values(TableNode $data) X-Ref |
Fills a form with field/value data. More info in http://docs.moodle.org/dev/Acceptance_testing#Providing_values_to_steps. param: TableNode $data |
i_expand_all_fieldsets() X-Ref |
Expands all moodleform's fields, including collapsed fieldsets and advanced fields if they are present. |
expand_all_fields() X-Ref |
Expands all moodle form fieldsets if they exists. Externalized from i_expand_all_fields to call it from other form-related steps without having to use steps-group calls. return: void |
i_set_the_field_to($field, $value) X-Ref |
Sets the specified value to the field. param: string $field param: string $value return: void |
i_set_the_field_with_xpath_to($fieldxpath, $value) X-Ref |
Sets the specified value to the field with xpath. param: string $field param: string $value return: void |
the_field_matches_value($field, $value) X-Ref |
Checks, the field matches the value. More info in http://docs.moodle.org/dev/Acceptance_testing#Providing_values_to_steps. param: string $field param: string $value return: void |
the_field_does_not_match_value($field, $value) X-Ref |
Checks, the field does not match the value. More info in http://docs.moodle.org/dev/Acceptance_testing#Providing_values_to_steps. param: string $field param: string $value return: void |
the_following_fields_match_these_values(TableNode $data) X-Ref |
Checks, the provided field/value matches. More info in http://docs.moodle.org/dev/Acceptance_testing#Providing_values_to_steps. param: TableNode $data Pairs of | field | value | |
the_following_fields_do_not_match_these_values(TableNode $data) X-Ref |
Checks that the provided field/value pairs don't match. More info in http://docs.moodle.org/dev/Acceptance_testing#Providing_values_to_steps. param: TableNode $data Pairs of | field | value | |
the_select_box_should_contain($select, $option) X-Ref |
Checks, that given select box contains the specified option. param: string $select The select element name param: string $option The option text/value. Plain value or comma separated |
the_select_box_should_not_contain($select, $option) X-Ref |
Checks, that given select box does not contain the specified option. param: string $select The select element name param: string $option The option text/value. Plain value or comma separated |
set_field_value($fieldlocator, $value) X-Ref |
Generic field setter. Internal API method, a generic *I set "VALUE" to "FIELD" field* could be created based on it. param: string $fieldlocator The pointer to the field, it will depend on the field type. param: string $value return: void |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |