N
N
nepster-web2015-08-20 12:46:04
Codeception
nepster-web, 2015-08-20 12:46:04

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>
...

The form fields are: ProjectForm[user][] and ProjectForm[position][]
None of the attempts to enter data goes through:
$I->fillField('ProjectForm[user][]', 'Вася');
$I->selectOption('ProjectForm[position][]','Архитектор баз данных');

$I->fillField('#projectform-user', 'Вася');
$I->selectOption('#projectform-position', 'Архитектор баз данных');

$I->fillField('ProjectForm[user]', 'Вася');
$I->selectOption('ProjectForm[position]','Архитектор баз данных');

The rest of the form works.
Please tell me how to solve this issue?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question