Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
behat_grade_deprecated Class Reference
Inheritance diagram for behat_grade_deprecated:
behat_deprecated_base behat_base behat_session_interface

Public Member Functions

 getSession ($name=null)
 Returns the Mink session.
 
 i_click_on_in_search_widget (string $needle, string $haystack)
 Clicks on an option from the specified search widget in the current gradebook page.
 
 i_confirm_in_search_within_the_gradebook_widget_does_not_exist ($needle, $haystack)
 Confirm if a value is not within the search widget within the gradebook.
 
 i_confirm_in_search_within_the_gradebook_widget_exists ($needle, $haystack)
 Confirm if a value is within the search widget within the gradebook.
 

Public Attributes

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

Protected Member Functions

 deprecated_message ($alternatives, bool $throwexception=false)
 Throws an exception if $CFG->behat_usedeprecated is not allowed.
 

Detailed Description

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

Member Function Documentation

◆ deprecated_message()

behat_deprecated_base::deprecated_message ( $alternatives,
bool $throwexception = false )
protectedinherited

Throws an exception if $CFG->behat_usedeprecated is not allowed.

Exceptions
Exception
Parameters
string | array$alternativesAlternative/s to the requested step
bool$throwexceptionIf set to true we always throw exception, irrespective of behat_usedeprecated setting.
Return values
void

◆ 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_in_search_widget()

behat_grade_deprecated::i_click_on_in_search_widget ( string $needle,
string $haystack )

Clicks on an option from the specified search widget in the current gradebook page.

Examples:

  • I click on "Student" in the "user" search widget
  • I click on "Group" in the "group" search widget
  • I click on "Grade item" in the "grade" search widget

@Given /^I click on "(?P<needle>(?:[^"]|::")*)" in the "(?P<haystack>(?:[^"]|")*)" search widget$/

Parameters
string$needleThe value to search for.
string$haystackThe type of the search widget.
Deprecated
since 4.5

◆ i_confirm_in_search_within_the_gradebook_widget_does_not_exist()

behat_grade_deprecated::i_confirm_in_search_within_the_gradebook_widget_does_not_exist ( $needle,
$haystack )

Confirm if a value is not within the search widget within the gradebook.

Examples:

  • I confirm "User" in "user" search within the gradebook widget does not exist
  • I confirm "Group" in "group" search within the gradebook widget does not exist
  • I confirm "Grade item" in "grade" search within the gradebook widget does not exist

@Given /^I confirm "(?P<needle>(?:[^"]|::")*)" in "(?P<haystack>(?:[^"]|")*)" search within the gradebook widget does not exist$/

Parameters
string$needleThe value to search for.
string$haystackThe type of the search widget.
Deprecated
since 4.5

◆ i_confirm_in_search_within_the_gradebook_widget_exists()

behat_grade_deprecated::i_confirm_in_search_within_the_gradebook_widget_exists ( $needle,
$haystack )

Confirm if a value is within the search widget within the gradebook.

Examples:

  • I confirm "User" in "user" search within the gradebook widget exists
  • I confirm "Group" in "group" search within the gradebook widget exists
  • I confirm "Grade item" in "grade" search within the gradebook widget exists

@Given /^I confirm "(?P<needle>(?:[^"]|::")*)" in "(?P<haystack>(?:[^"]|")*)" search within the gradebook widget exists$/

Parameters
string$needleThe value to search for.
string$haystackThe type of the search widget.
Deprecated
since 4.5

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: