Can you hightlight, Copy and paste in Automator?

I want to download photos from a site where you start off with a thumbnail gallery, then click on the first photo, which open it in the full view. I want to copy the photo number (window on the right), right click on the download button, paste the number in the window that open up and enter to save.

I then wants to click the arrow to go to the next photo and repeat the process.

I manage to dp the whole operation with Automator and its record function, but in the replay, it will not copy the number to paste in the download window.

What do I do wrong, or can you not do this in Automator?

Or is there a different way to forward the photo just downloaded and have it saved sequentially?

Thank you for any help. I hope this is the right place for the question?

Regards
Herman du Plooy