[ Index ] |
PHP Cross Reference of Unnamed Project |
[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: | 519 lines (20 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 2 files lib/behat/behat_field_manager.php lib/behat/behat_base.php |
behat_forms:: (20 methods):
press_button()
press_button_and_switch_to_main_window()
i_set_the_following_fields_to_these_values()
i_expand_all_fieldsets()
expand_all_fields()
i_set_the_field_to_local_url()
i_set_the_field_to()
i_press_key_in_the_field()
i_set_the_field_to_multiline()
i_set_the_field_with_xpath_to()
the_field_matches_value()
the_field_does_not_match_value()
the_field_with_xpath_matches_value()
the_field_with_xpath_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()
i_select_from_the_singleselect()
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 |
press_button_and_switch_to_main_window($button) X-Ref |
Press button with specified id|name|title|alt|value and switch to main window. 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_local_url($field, $path) X-Ref |
Sets the field to wwwroot plus the given path. Include the first slash. param: string $field param: string $path 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_press_key_in_the_field($key, $field) X-Ref |
Press the key in the field to trigger the javascript keypress event Note that the character key will not actually be typed in the input field param: string $key either char-code or character itself, param: string $field return: void |
i_set_the_field_to_multiline($field, PyStringNode $value) X-Ref |
Sets the specified value to the field. param: string $field param: PyStringNode $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_field_with_xpath_matches_value($fieldxpath, $value) X-Ref |
Checks, the field matches the value. param: string $fieldxpath param: string $value return: void |
the_field_with_xpath_does_not_match_value($fieldxpath, $value) X-Ref |
Checks, the field does not match the value. param: string $fieldxpath 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 |
i_select_from_the_singleselect($option, $singleselect) X-Ref |
Select a value from single select and redirect. |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |