I've searched on here but couldn't find what I was looking for as my situation is a bit different.
The website I'm testing on allows you to create charts and reports, each time you create a report it gives it a different OjectIdentifier...
First time I create the report the OjectIdentifier is something like "r53197Div", the second time I create the same report the OjectIdentifier is something like "r54476Div". I can use the wild card "*" as "r*Div", this fixes that problem...
On the website I can add these reports to a dashboard. For example, I can add 5 reports onto the one page as thumbnails and click on them to open the report fully. This is where the problem is, because I'm now using "r*Div", when I play back the test case, it will always click on the first thumbnail.
I'm really stuck here as I don't know what to do... The thumbnail is an image, so I can't ID it with text or any other way.
Is there a way to ID the object by position (within range) on the screen (if that helps)?
Re: Dynamic Objects
Check your objects in the Object Browser. You need to find a property whose value is unique among your objects. Then map them by this property.
Also, instead of using Name Mapping, you can obtain all such objects with the FindAll method, iterate through the returned array and perform the needed actions with each object in a loop.