waiting for element replaced with wait for an attribute