use wait_until_present
try #link instead of #a