public function checkWarningShown()
{
sleep(3);
if ($this->doesWarningShow() || $this->doesWarningShow2()) {
if ($this->getElement('prescriptionExistsYesOption')->getXpath() && $this->getElement('prescriptionExistsNoOption')->getXpath()) {
print "Warning is displayed OK";
} else {
print "Yes/No options missing on the warning!";
}
} else {
throw new BehaviorException("NO WARNING SHOWN!!! TEST FAILED!");
}
}