'Waiting for a text to appear in a certain element.
Most frequent usage is actually to wait for a _different_ element
with a different text to appear in place of an old element.
So a way to avoid capturing stale element reference should be provided
for this use case.
Better to wrap getting entity status cell in a lambda
to avoid problems with cell being replaced with totally different
element by Javascript'

def _wait_till_text_present_in_element(self, element, texts, timeout=None):

    if (not isinstance(texts, (list, tuple))):
        texts = (texts,)
    def predicate(_):
        elt = (element() if hasattr(element, '__call__') else element)
        for text in texts:
            if self._is_text_visible(elt, text):
                return text
        return False
    return self._wait_until(predicate, timeout)
