Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
behat_gradereport_grader Class Reference

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

Inheritance diagram for behat_gradereport_grader:
behat_base behat_session_interface

Public Member Functions

 getSession ($name=null)
 Returns the Mink session.
 
 i_click_on_user_menu (string $student)
 Clicks on given user menu.
 
 i_click_on_user_profile_field_menu (string $field)
 Clicks on given user profile field menu.
 

Static Public Member Functions

static get_partial_named_selectors ()
 Return the list of partial named selectors.
 

Public Attributes

const PAGE_READY_JS
 The JS code to check that the page is ready.
 

Protected Member Functions

 get_grade_item_id ($itemname)
 Gets the grade item id from its name.
 
 get_user_id ($name)
 Gets the user id from its name.
 
 get_user_selector (string $student)
 Gets unique xpath selector for a user.
 

Detailed Description

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

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_grade_item_id()

behat_gradereport_grader::get_grade_item_id ( $itemname)
protected

Gets the grade item id from its name.

Deprecated
since 4.2
Todo
MDL-77107 This will be deleted in Moodle 4.6.
Exceptions
Exception
Parameters
string$itemname
Return values
int

◆ get_partial_named_selectors()

static behat_gradereport_grader::get_partial_named_selectors ( )
static

Return the list of partial named selectors.

Return values
array

◆ get_user_id()

behat_gradereport_grader::get_user_id ( $name)
protected

Gets the user id from its name.

Exceptions
Exception
Parameters
string$name
Return values
int

◆ get_user_selector()

behat_gradereport_grader::get_user_selector ( string $student)
protected

Gets unique xpath selector for a user.

Exceptions
Exception
Parameters
string$student
Return values
string

◆ getSession()

behat_session_interface::getSession ( $name = null)
inherited

Returns the Mink session.

Parameters
string | null$namename of the session OR active session will be used
Return values
Behat\Mink\Session

Implemented in behat_form_field.

◆ i_click_on_user_menu()

behat_gradereport_grader::i_click_on_user_menu ( string $student)

Clicks on given user menu.

@Given /^I click on user menu "([^"]*)"$/

Parameters
string$student

◆ i_click_on_user_profile_field_menu()

behat_gradereport_grader::i_click_on_user_profile_field_menu ( string $field)

Clicks on given user profile field menu.

@Given /^I click on user profile field menu "([^"]*)"$/

Parameters
string$field

Member Data Documentation

◆ PAGE_READY_JS

const behat_session_interface::PAGE_READY_JS
inherited
Initial value:
= "document.readyState === 'complete' && " .
"(typeof M !== 'object' || typeof M.util !== 'object' || " .
"typeof M.util.pending_js === 'undefined' || M.util.pending_js.length === 0)"

The JS code to check that the page is ready.

The document must be complete and either M.util.pending_js must be empty, or it must not be defined at all.


The documentation for this class was generated from the following file: