Select a button whose position changing dynamically

Check out www.rpachallenge.com for a similar application to the one you try to automate and this post on how to automate applications when the position on the element changes on each load.
In most cases, you don’t want the selector to be fixed to the element position, you just need to find the fixed attributes that you use to identify the target element.