Page 1 of 1

Using Codeception with form input array

Posted: 29 Mar 2019 09:02
by Archer614
So I am trying to use Codeception on a form where I have multiple inputs that have a name like such.

Code: Select all

<input type="text" name="flavours[]" >
I have tried

Code: Select all

$I->fillField('flavors[]', 'Blue Razberry');
However Codeception returns

Code: Select all

Couldn't fill field "flavors[]","Blue Razberry":
InvalidArgumentException: Unreachable field ""  unable to find a field with that name.

Is it possible in Codeception? If not, is there another way?

Thanks in advance!