This is easily reproducible, even without a ranorex snapshot.
Just create any html document and add this tag in the body
<img _ngcontent-dae-c14="" automationid="headerWagoLogo" src="/assets/images/WagoLogo.svg" alt="WAGO logo" class="wagoLogo">
The problem is solved, but just by half. The problem why the <img> tag was captured as "picture" was because the instrumentation didn't work properly. The browser extension was present, showed the dialog when the icon was clicked, but was somehow not working. However, I fixed this problem in the meantime by completely re-installing all stuff.
Now, let's come to the half that still does not work:
Prerequisite: I have created a rule in the spy options (settings -> advanced -> edit attribute weights) that should give the highest priority to use an automationid if present:
screenshot_ranorexspy.png
Now, I click "track" and select this element. The spy never ever is using this automationid attribute, even not if I create a blank ranorex project and delete all other rules.
Ranorex spy automatically creates this xpath:
/dom[@domain='url-of-testserver-here']/body//tag[@tagname='app-header']/div/div/img[@alt='WAGO logo']
But as I set the weight the highest as possible, shouldn't the Ranorex spy create this xpath (which btw. works perfectly!)?
screenshot_ranorexspy2.png
My question is: why does the Ranorex Spy completely ignore the automationid attribute that even has the highest priority at all?
Btw. I may not add a Ranorex Snapshot as this would disclose content that may not be published.
You do not have the required permissions to view the files attached to this post.