Adds wait_for_invisibility helper method