$value) { $selector = '[name="SignupForm[' . $field . ']"]'; if($field == 'id_tax_rate_default' || $field == 'id_producer') { $this->actor->selectOption('select'.$selector, $value); } else { $this->actor->fillField('input'.$selector, $value); } } $this->actor->click('signup-button'); } }