1

So I am trying to use Codeception on a form where I have multiple inputs that have a name like such.

<input type="text" name="flavours[]" >

I have tried

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

However Codeception returns

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!

2
  • Did you ever discover a resolution for this issue? Commented Feb 13, 2015 at 20:49
  • No dude. Ended up changing the architecture. I am waiting for codeception to fix this. Commented Feb 14, 2015 at 8:55

2 Answers 2

1

You can you submitForm method instead

   $I->submitForm('#name_of_your_form', array(
    'field' => 'value',
    'field' => 'value'
));
Sign up to request clarification or add additional context in comments.

Comments

0

Use it:

$I->fillField('flavors', 'Blue Razberry');

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.