Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 402] [Versions 400 and 403]

Behat steps definitions for drag and drop onto image.

Copyright: 2015 Oakland University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 262 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class


Class: behat_gradereport_grader  - X-Ref

Steps definitions related with the drag and drop onto image question type.

i_click_on_student_and_grade_item($student, $itemname)   X-Ref
Click a given user grade cell.

param: string $student
param: string $itemname

i_click_away_from_student_and_grade_value($student, $itemname)   X-Ref
Remove focus for a grade value cell.

param: string $student
param: string $itemname

i_click_away_from_student_and_grade_feedback($student, $itemname)   X-Ref
Remove focus for a grade value cell.

param: string $student
param: string $itemname

the_grade_should_match($student, $itemname, $value)   X-Ref
Checks grade values with or without a edit box.

param: string $student
param: string $itemname
param: string $value

i_should_see_grade_field($student, $itemname)   X-Ref
Look for a grade editing field.

param: string $student
param: string $itemname

i_should_see_feedback_field($student, $itemname)   X-Ref
Look for a feedback editing field.

param: string $student
param: string $itemname

i_should_not_see_grade_field($student, $itemname)   X-Ref
Look for a lack of the grade editing field.

param: string $student
param: string $itemname

i_should_not_see_feedback_field($student, $itemname)   X-Ref
Look for a lack of the feedback editing field.

param: string $student
param: string $itemname

get_user_id($name)   X-Ref
Gets the user id from its name.

return: int
param: string $name

get_grade_item_id($itemname)   X-Ref
Gets the grade item id from its name.

return: int
param: string $itemname

get_student_and_grade_cell_selector($student, $itemname)   X-Ref
Gets unique xpath selector for a student/grade item combo.

return: string
param: string $student
param: string $itemname

get_student_and_grade_value_selector($student, $itemname)   X-Ref
Gets xpath for a particular student/grade item grade value cell.

return: string
param: string $student
param: string $itemname

get_student_and_grade_feedback_selector($student, $itemname)   X-Ref
Gets xpath for a particular student/grade item feedback cell.

return: string
param: string $student
param: string $itemname