mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
Merge branch 'MDL-64570-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
7677a86cc0
13 changed files with 175 additions and 21 deletions
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -75,14 +75,14 @@
|
|||
</label>
|
||||
</div>
|
||||
<div class="form-input">
|
||||
<input type="text" name="username" id="username" size="15" value="{{username}}">
|
||||
<input type="text" name="username" id="username" size="15" value="{{username}}" autocomplete="username">
|
||||
</div>
|
||||
<div class="clearer"><!-- --></div>
|
||||
<div class="form-label">
|
||||
<label for="password">{{#str}} password {{/str}}</label>
|
||||
</div>
|
||||
<div class="form-input">
|
||||
<input type="password" name="password" id="password" size="15" value="">
|
||||
<input type="password" name="password" id="password" size="15" value="" autocomplete="current-password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue