Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
behat_selectors Class Reference

Static Public Member Functions

static get_allowed_selectors ()
 Allowed selectors getter. More...
 
static get_allowed_text_selectors ()
 Allowed text selectors getter. More...
 
static get_behat_selector ($selectortype, $element, Behat\Mink\Session $session)
 Returns the behat selector and locator for a given moodle selector and locator. More...
 
static normalise_named_selector (string $selector, string $locator)
 Normalise the selector and locator for a named partial. More...
 
static transform_find_for_field (behat_base $context, string $label, Element $container)
 Transform the selector for a field. More...
 

Member Function Documentation

◆ get_allowed_selectors()

static behat_selectors::get_allowed_selectors ( )
static

Allowed selectors getter.

Return values
array

◆ get_allowed_text_selectors()

static behat_selectors::get_allowed_text_selectors ( )
static

Allowed text selectors getter.

Return values
array

◆ get_behat_selector()

static behat_selectors::get_behat_selector (   $selectortype,
  $element,
Behat\Mink\Session  $session 
)
static

Returns the behat selector and locator for a given moodle selector and locator.

Parameters
string$selectortypeThe moodle selector type, which includes moodle selectors
string$elementThe locator we look for in that kind of selector
Session$sessionThe Mink opened session
Return values
arrayContains the selector and the locator expected by Mink.

◆ normalise_named_selector()

static behat_selectors::normalise_named_selector ( string  $selector,
string  $locator 
)
static

Normalise the selector and locator for a named partial.

Parameters
string$selectorThe selector name
string$locatorThe value to normalise
Return values
array

◆ transform_find_for_field()

static behat_selectors::transform_find_for_field ( behat_base  $context,
string  $label,
Element  $container 
)
static

Transform the selector for a field.

Parameters
string$labelThe label to find
Element$containerThe container to look within
Return values
arrayThe selector, locator, and container to search within

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