public function durationItem1($duration) { $this->getElement('prescriptionDurationItem0')->setValue($duration); $this->getSession()->wait(1000); }