Merge branch 'MDL-64570-35' of git://github.com/damyon/moodle into MOODLE_35_STABLE

This commit is contained in:
David Monllaó 2019-02-19 09:26:27 +01:00
commit df51b94410
13 changed files with 175 additions and 21 deletions

View file

@ -136,6 +136,16 @@ class behat_form_field {
return $instance->matches($expectedvalue);
}
/**
* Get the value of an attribute set on this field.
*
* @param string $name The attribute name
* @return string The attribute value
*/
public function get_attribute($name) {
return $this->field->getAttribute($name);
}
/**
* Guesses the element type we are dealing with in case is not a text-based element.
*