|
| deprecated_message ($alternatives, bool $throwexception=false) |
| Throws an exception if $CFG->behat_usedeprecated is not allowed.
|
|
- Copyright
- 2023 Ilya Tregubov
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ deprecated_message()
behat_deprecated_base::deprecated_message |
( |
| $alternatives, |
|
|
bool | $throwexception = false ) |
|
protectedinherited |
Throws an exception if $CFG->behat_usedeprecated is not allowed.
- Exceptions
-
- Parameters
-
string | array | $alternatives | Alternative/s to the requested step |
bool | $throwexception | If set to true we always throw exception, irrespective of behat_usedeprecated setting. |
- Return values
-
◆ getSession()
behat_session_interface::getSession |
( |
| $name = null | ) |
|
|
inherited |
Returns the Mink session.
- Parameters
-
string | null | $name | name of the session OR active session will be used |
- Return values
-
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 | $needle | The value to search for. |
string | $haystack | The 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 | $needle | The value to search for. |
string | $haystack | The 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 | $needle | The value to search for. |
string | $haystack | The type of the search widget. |
- Deprecated
- since 4.5
◆ 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:
- grade/tests/behat/behat_grade_deprecated.php