Page 1 of 1

Repository Editor in 8.3 ignoring index when highlighting

Posted: Fri Oct 12, 2018 10:08 am
by Tomsk666
OS: Windows 10 Pro 64bit latest updates
Ranorex: 8.3 downloaded 12 October
Web Browsers: tested with Edge and Chrome, same behaviour
web page: https://www.ranorex.com/why-ranorex/

Scenario:
Recorded some very simple actions against the Ranorex.com website.
Here is the O.R.:
OR.jpg
If I then click 'Edit in Spy' for the 'DownLoadFreeTrial' Element, it opens in the Spy as normal, however, if I edit the Ranorex Path directly in the top bar of the Spy and add an Index:
Spy1.JPG
and hit Enter, when I then click the highlight button in the Spy, it removes the index attribute and cannot find the item. This seems to be the same when trying to highlight from the O.R. as well:
Spy2.JPG
It works fine when I run the test Suite, but cannot use the Spy to highlight the element, as Ranorex removes the index attribute every time.

After trying this out a bit further, I have found that using this identifier: /dom[@domain='www.ranorex.com']//a[@innertext='Download free trial'][1]
I can now highlight the element from the O.R. and run the test fine (finds the element no problem), but when I click edit in Spy, the element reports not found in the Spy! and if I click refresh it removes the index attribute. Some very odd behaviour when using indexes

Re: Repository Editor in 8.3 ignoring index when highlighting

Posted: Fri Oct 12, 2018 11:00 am
by odklizec
Hi,

I'm not experiencing anything like this with Ranorex 8.3. I can use index in xpath both in standalone and integrated Spy in Studio and it does not disappear. And yes, I tried the very same url and Chrome/Edge. The only things that spy reports is that it cannot uniquely identify parent folder.
spy.png
BTW, make sure you have Chrome and Edge processes on the white list! It's a requirement for Edge browser.

Re: Repository Editor in 8.3 ignoring index when highlighting

Posted: Fri Oct 12, 2018 11:34 am
by Tomsk666
I have both browsers whitelisted. As I say, it identifies the element, until I click refresh or highlight, then the index gets dropped & it finds more than one element.

Re: Repository Editor in 8.3 ignoring index when highlighting

Posted: Fri Oct 12, 2018 12:38 pm
by Tomsk666
I've captured the process on video, see below.
Steps are:
1. in the O.R. select the item that uses the index and click Edit in Spy
2. In the Spy click refresh or Highlight button
3. Ranorex loses the index (changes the Ranorex path)

Video capture on dropbox: https://www.dropbox.com/sh/dlnsuiqdzgr8 ... P9fma?dl=0

Re: Repository Editor in 8.3 ignoring index when highlighting

Posted: Fri Oct 12, 2018 1:31 pm
by odklizec
I was about to write it all works as expected, but now I saw it too. I thought the index is removed, only if you edit the repo item, add index and THEN you click on highlight or refresh. But it seems it happens, if the index is already stored in repo! Once the xpath with index is started to be edited in spy, and then you click highlight or refresh, the index disappears. So yes, it appears to be a bug.

Re: Repository Editor in 8.3 ignoring index when highlighting

Posted: Mon Oct 15, 2018 2:54 pm
by Support Team
Hi Tomsk666,

Thank you for reporting this issue.
We created an entry in our internal bug tracking tool and our developers will further analyze this behavior.
Please note, that all reported bugs and feature requests are documented in the release notes, with every new version release of Ranorex.

Kind regards,
Stephan