Repository Editor in 8.3 ignoring index when highlighting

Bug reports.
Tomsk666
Certified Professional
Certified Professional
Posts: 33
Joined: Thu Mar 28, 2013 12:59 pm
Location: UK
Contact:

Repository Editor in 8.3 ignoring index when highlighting

Post by Tomsk666 » Fri Oct 12, 2018 10:08 am

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
OR.jpg (59.69 KiB) Viewed 73 times
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
Spy1.JPG (46.13 KiB) Viewed 73 times
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
Spy2.JPG (41.43 KiB) Viewed 73 times
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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3922
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Repository Editor in 8.3 ignoring index when highlighting

Post by odklizec » Fri Oct 12, 2018 11:00 am

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
spy.png (23.27 KiB) Viewed 66 times
BTW, make sure you have Chrome and Edge processes on the white list! It's a requirement for Edge browser.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Tomsk666
Certified Professional
Certified Professional
Posts: 33
Joined: Thu Mar 28, 2013 12:59 pm
Location: UK
Contact:

Re: Repository Editor in 8.3 ignoring index when highlighting

Post by Tomsk666 » Fri Oct 12, 2018 11:34 am

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.

Tomsk666
Certified Professional
Certified Professional
Posts: 33
Joined: Thu Mar 28, 2013 12:59 pm
Location: UK
Contact:

Re: Repository Editor in 8.3 ignoring index when highlighting

Post by Tomsk666 » Fri Oct 12, 2018 12:38 pm

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3922
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Repository Editor in 8.3 ignoring index when highlighting

Post by odklizec » Fri Oct 12, 2018 1:31 pm

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Repository Editor in 8.3 ignoring index when highlighting

Post by Support Team » Mon Oct 15, 2018 2:54 pm

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
.
Image