Dealing with dynamic objects
I have several pages needing testing where a set of buttons get dynamically generated (depending on inputs like current date and a preset schedule). The identifying tags for these objects are always unique - the developers tell me this is required from following a .NET standard - and, as far as I can see, there is no way to know which button does what just by looking at the ID tags. In a manual test in this situation, the tester would read the text on the page that is parallel with the button to know which one they wanted to click and where it would lead; since the ID tags are being dynamically generated and are unique, I am having trouble figuring out how to write code that will be able to look at the button objects and know which one it wants to click on in order to get to the particular page that is needed for the next step in the test.
The associated text is not always the same either - it's a matter of English comprehension, and I really would prefer to avoid that level of parsing to get past this.
Basically I am curious if anyone has any advice in how to approach this problem - even if it's just "give it up, it's not automatable".