protected function hasPrescriptionSaved() { $this->waitForElementDisplayBlock('prescriptionSavedOk'); return (bool) $this->find('xpath', $this->getElement('prescriptionSavedOk')->getXpath()); }