protected function getElement()
{
$callable = $this->searchFunction;
$log = usingLog()->startAction("Find element on page with label, id or name '{$this->searchTerm}'");
try {
$element = $callable();
$log->endAction();
return $element;
} catch (Exception $e) {
throw new E5xx_ExpectFailed(__METHOD__, $this->searchTerm . ' exists', 'does not exist');
}
}