protected function doesPrescriptionValidationExist() { $this->waitForElementDisplayBlock('.alert-box.alert.with-icon ul'); return (bool) $this->find('xpath', $this->getElement('prescriptionValidationWarning')->getXpath()); }