Esempio n. 1
0
 /**
  * Generic field setter.
  *
  * Internal API method, a generic *I set "VALUE" to "FIELD" field*
  * could be created based on it.
  *
  * @param string $fieldlocator The pointer to the field, it will depend on the field type.
  * @param string $value
  * @return void
  */
 protected function set_field_value($fieldlocator, $value)
 {
     // We delegate to behat_form_field class, it will
     // guess the type properly as it is a select tag.
     $field = BehatFieldManager::get_form_field_from_label($fieldlocator, $this);
     $field->set_value($value);
 }