$value) { $inputType = $field === 'body' ? 'textarea' : 'input'; $this->actor->fillField($inputType . '[name="' . $contactForm->formName() . '[' . $field . ']"]', $value); } $this->actor->click('contact-button'); } }