Added option allowing to wait to appear one of the specified elements