Repository Editor in 8.3 ignoring index when highlighting
Posted: 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.: 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: 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: 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
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.: 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: 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: 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