For example, I'm testing a search page, which will show the result numbers in .text > span:nth-child(1).
However, if not any result, it will only show text="nothing" or .text > span:nth-child(1) is not exist.
So how can I wait for both conditions?