waiting for attribute to be available