Hi
Got a strange issue since upgrading to 5.3.0.
I am automating a WPF application and thought I would try the new native wpf mode for object identification. I have got wpfPreferred and 'Show All Elements' enabled, apart from that all settings are default.
When I now spy objects, I no longer see the AutomationId property set against the object. The automationId can be seen if I change back to UiaOnly, but not with in the wpf mode.
A couple of elements do have automationId's visible, but looking at it, these are actually being pulled from the Name property (not AutomationName, just name). If the name property has a value, then this will be copied into the AutomationId property in the spy.
Proved the above by spying an object and not seeing the automationId, then using snoop, adding a Name property and spying again. On second attempt the automationId is displayed as a copy of the name.
Is this a bug or desired behaviour?
Cheers
Darren
[5.3.0] Spy Not Picking up AutomationID in WPF App
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: [5.3.0] Spy Not Picking up AutomationID in WPF App
Hi Darren,
We unfortunately have some issues with the AutomtaionId with Ranorex 5.3.
May I therefore ask you to send us a Ranorex snapshot of your application, one from your app when it is identified with the UIA plugin and one if the new plugin is used?
The following link will show you how to generate a snapshot file: Creating Ranorex Snapshot Files.
Furthermore, would it be possible to send us your application for detailed analysis?
You can send all the files directly to [email protected] with a link to this forum post.
Thanks,
Markus
We unfortunately have some issues with the AutomtaionId with Ranorex 5.3.
May I therefore ask you to send us a Ranorex snapshot of your application, one from your app when it is identified with the UIA plugin and one if the new plugin is used?
The following link will show you how to generate a snapshot file: Creating Ranorex Snapshot Files.
Furthermore, would it be possible to send us your application for detailed analysis?
You can send all the files directly to [email protected] with a link to this forum post.
Thanks,
Markus
Re: [5.3.0] Spy Not Picking up AutomationID in WPF App
Hi Markus
Thanks for the reply, have emailed separately.
Cheers
Darren
Thanks for the reply, have emailed separately.
Cheers
Darren
Re: [5.3.0] Spy Not Picking up AutomationID in WPF App
I do have the same problem!!!
Clicking within Spy into the UIA-tree always pops up an warning window ("please consider using wpf ...")
Using "find", "findsingle", etc. in usercode doesn't work any more. I presume that RR is searching the hell out of two trees (WPF and UIA)
Is ist possible to disable the WPF tree in SPY? I don't want 2 identically named forms. Ranorex IDE gets totally confused therefore!
This is really a major bug!!
Please provide a solution ...
Clicking within Spy into the UIA-tree always pops up an warning window ("please consider using wpf ...")
Using "find", "findsingle", etc. in usercode doesn't work any more. I presume that RR is searching the hell out of two trees (WPF and UIA)
Is ist possible to disable the WPF tree in SPY? I don't want 2 identically named forms. Ranorex IDE gets totally confused therefore!
This is really a major bug!!
Please provide a solution ...
Re: [5.3.0] Spy Not Picking up AutomationID in WPF App
I've got around it in the short term by setting UiaOnly in the spy.
Settings > Plugins > WPF > WPF Legacy / UIA Interaction = UiaOnly
Settings > Plugins > WPF > WPF Legacy / UIA Interaction = UiaOnly
Re: [5.3.0] Spy Not Picking up AutomationID in WPF App
Thx Gh15ty, you made my day!
Re: [5.3.0] Spy Not Picking up AutomationID in WPF App
On first glance, looks like this is fixed in version 5.3.2.
Cheers
Cheers