Try 'wait until' instead of just 'contains'