if (Cleanup.of.isInvalidSelectorError(lastError)) {
throw Cleanup.of.wrap(lastError);
}
else if (!exists(element)) {
throw new ElementNotFound(getSearchCriteria(), not(condition), lastError, timeoutMs);
}
else {
throw new ElementShouldNot(getSearchCriteria(), prefix, condition, element, lastError, timeoutMs);
}
}