Answer the question
In order to leave comments, you need to log in
Codeception fillField why is text not being inserted into array field?
There is a piece of the form:
...
<input id="projectform-user" class="form-control" name="ProjectForm[user][]" placeholder="Имя
<select id="projectform-position" class="form-control" name="ProjectForm[position][]">
<option value="5">Архитектор баз данных</option>
<option value="2">Дизайнер</option>
<option value="7">Парень, который ничего не делает</option>
<option value="6">Пиарщик</option>
<option value="1">Программист</option>
<option value="3">Руководитель проекта</option>
<option value="4">Тестировщик</option>
</select>
...
$I->fillField('ProjectForm[user][]', 'Вася');
$I->selectOption('ProjectForm[position][]','Архитектор баз данных');
$I->fillField('#projectform-user', 'Вася');
$I->selectOption('#projectform-position', 'Архитектор баз данных');
$I->fillField('ProjectForm[user]', 'Вася');
$I->selectOption('ProjectForm[position]','Архитектор баз данных');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question