It has been a while since I used JavaScript, but given other answers and comments that there is no real identifier associated with the element, you could do something like the following:
- Search all Divs with Role == 'Button' and InnerHtml == 'Refresh' attributes.
- Once the correct InnerHtml is found, get the element.
- Click on the found item.
Again, it could be smoke, but I thought I would throw it away.
edit : just realized that you are doing this using C # and a browser; however, the concept will still be the same.
source share