Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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