Add it as resource, then use a loop.
Contact me if you need paid help, good luck.
Thanks,
To wait while element will appear on page, use Wait While Element Exists action

To wait untill element disappear you need to use cutom waiter:
http://wiki.bablosoft.com/doku.php?id=how_to_wait_on_certain_event_on_page#custom_waiters