Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 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.

param: string $name
return: int

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

param: string $itemname
return: int

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

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

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

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

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

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