Page 1 of 1

WPF Identification

Posted: Mon Jan 22, 2018 12:09 pm
by floolf
Hello,
I am having some trouble in WPF objects identification (Ranorex 7.2.0 - Windows 10)
Can you explain me the behaviour of the tracker :
In my repository, I have an object 'Operation', and I modify the path. I don't modify anything else

1 - Path : .//link[@helptext='Opération'], Edit => One element found
2 - In the Edit form, I change watch the "Browser and Result" tab , I see 2 containers in the path between my folder et my object
img2.png
3 - I modify the path in the edit form : container/container/link[@helptext='Opération'] => One élément found
4 - Apply, Edit the same element : 3 éléments found
5 - Refresh : 1 element found
6 Apply/Edit 3 elements found, Refresh, 3 elements found


Thanks for your time

floolf

Re: WPF Identification

Posted: Mon Jan 22, 2018 12:21 pm
by odklizec
Hi,

Could you please post a Ranorex snapshot (not screenshot) of the problematic element? Without (at very least) snapshot, there is not much anyone here can do or suggest.

At next, Ranorex 7.2.0 is somewhat old and no longer supported. Please update Ranorex with Ranorex 7.2.1 or 8.0 and check the behavior again.

Re: WPF Identification

Posted: Mon Jan 22, 2018 1:02 pm
by floolf
My Snapshot is to heavy (1,8 M) to be uploaded
Can I send it by mail ?

Re: WPF Identification

Posted: Mon Jan 22, 2018 1:03 pm
by odklizec
Just use a public file sharing service (OneDrive, DropBox, etc...) and here post a link. Thanks.

Re: WPF Identification

Posted: Mon Jan 22, 2018 4:12 pm
by floolf

Re: WPF Identification

Posted: Wed Jan 24, 2018 9:05 am
by odklizec
Hi,

I see nothing wrong in the snapshot you uploaded. There seems to be just one "Operation" element in the snapshot? So if you are getting more elements, please try to save snapshot again with multiple "Operation" elements. But in my opinion, if Spy returns multiple elements, the elements are most probably in GUI?

Re: WPF Identification

Posted: Wed Jan 24, 2018 11:50 am
by floolf
Hello,

I checked other snapshots I had and always found one element.

I have a question : I did not change anything concioulsly on my side, but does the edit/apply/refresh in Ranorex Spy send anything to server ?
Is it possible that load balancing on server induce my recognition problems ?

Thanks for your time

Re: WPF Identification

Posted: Thu Jan 25, 2018 10:32 pm
by Support Team
Hi floof,

Spy does not send anything to a server. When opening/applying/editing/refreshing Spy, it is reading the AUT's elements again to ensure you are working with the current element and not a stale one.

If possible, please provide a Ranorex Snapshot from when it is returning three elements. This will help us compare the differences and the potential cause of this odd behavior.

I look forward to your response!

Cheers,
Ned