Chrome native PDF plugin stops Ranorex from finding elements

Bug reports.
amross
Posts: 7
Joined: Thu Oct 13, 2016 12:03 am

Chrome native PDF plugin stops Ranorex from finding elements

Post by amross » Mon Jul 10, 2017 6:40 am

Ranorex version = 6.1.0
Chrome version = Version 59.0.3071.115 (Official Build) (64-bit)

I am noticing that when a html page includes the native Chrome plugin, Ranorex fails to find any elements in the page.

To reproduce:

1. Have a HTML page with the following inside it:

<embed id="plugin" type="application/pdf" src="file:///c:/test.pdf">

2. Create a Ranorex repository for that page.
3. Right click on any element and choose 'Highlight Element'

Observed:
A message appears

"The item exists but could not be highlighted because it could not be made visible"

If the same page is viewed, but with the <embed> tag removed, the element will be highlighted with a red frame (as expected)

A whole html page showing the problem

Code: Select all

<html>
<head><title>TestApplication</title></head>
<body>
<div id="SomeDiv">Some text here</div>
<embed id="plugin" type="application/pdf" src="file:///c:/test.pdf">
</body>
</html>
Create a repo and try to find the <div> with id='SomeDiv'. It will not work if the pdf is being displayed.
Attachments
Snapshot.rxsnp
Example Ranorex snapshot
(65.9 KiB) Downloaded 18 times

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

Re: Chrome native PDF plugin stops Ranorex from finding elements

Post by Support Team » Wed Jul 12, 2017 6:06 pm

Hello Amross,

Thank you for the detailed bug report. I have duplicated the concern locally and will be adding it to our internal bug tracking system to be further investigated. Currently, we do not know if and when this issue will be fixed. This depends on various factors. Nevertheless, all new features, updates, and bug fixes are documented in the release notes with every new version release of Ranorex.

http://www.ranorex.com/release-notes.html

Cheers,
Ned
.
Image

amross
Posts: 7
Joined: Thu Oct 13, 2016 12:03 am

Re: Chrome native PDF plugin stops Ranorex from finding elements

Post by amross » Thu Jul 13, 2017 12:09 am

Thanks for looking at this.

From our end, it would be good to know if this issue is assigned a low priority / wontfix. In that case we will have to restructure our tests.
OTOH If there is a fix in the foreseeable future, we might hold off on restructuring our tests.

Any communication would be appreciated.

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

Re: Chrome native PDF plugin stops Ranorex from finding elements

Post by Support Team » Thu Jul 13, 2017 8:04 pm

I will keep an eye on the issue. Any new developments on it, I will be sure to update you here.

Cheers,
Ned
.
Image

gaelm
Posts: 2
Joined: Mon Mar 12, 2018 6:13 pm

Re: Chrome native PDF plugin stops Ranorex from finding elements

Post by gaelm » Tue Mar 13, 2018 11:38 pm

Sorry for bringing this up again but I am facing the same issue here.

I don't know if you are working on fixing the problem but here are my findings when a web page contains an embedded pdf file:
  • - DOM elements are available, though not visible
    - it looks like Ranorex considers that the PDF viewer is above the DOM elements, thus setting the DOM elements' Visible property to False
    - if I start Chrome's developer mode and refresh the tracked DOM elements in Ranorex Spy, all previously hidden DOM elements suddenly become visible
    - Calling the EnsureVisible method on tracked elements doesn't change anything i.e. the element remains hidden
Ranorex version: 7.0.1
Chrome 65 + latest Chrome extension available

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

Re: Chrome native PDF plugin stops Ranorex from finding elements

Post by Support Team » Wed Mar 14, 2018 1:52 pm

Hi gaelm,

We appreciate the additional feedback on this known issue. This issue is fixed and will be part of the Ranorex 8.1 release. I do not have an official release date at this time but is expected to be released within the near future. I hope this helps!

Kind Regards,
Ned
.
Image

gaelm
Posts: 2
Joined: Mon Mar 12, 2018 6:13 pm

Re: Chrome native PDF plugin stops Ranorex from finding elements

Post by gaelm » Thu Mar 15, 2018 4:13 pm

Hi Ned,

Thanks for fixing this in the next release.
Though, one more question, will this fix be part of the Ranorex extension for Chrome or will it be part of Ranorex 8.1? (just to know if we can keep working on Ranorex 7.0.1 for the moment and simply update the extension when released on the Chrome web store - which, let's be honest, would be ideal for us :oops: ).

Regards,
Gael.

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

Re: Chrome native PDF plugin stops Ranorex from finding elements

Post by Support Team » Mon Mar 19, 2018 4:52 pm

Hi gaelm,

This fix is within the Ranorex 8.1 plugin and not the browser extension. Unfortunately, this means you will be required to upgrade to Ranorex 8.1 to resolve this issue.

I hope this information helps!

Regards,
Ned
.
Image

amross
Posts: 7
Joined: Thu Oct 13, 2016 12:03 am

Re: Chrome native PDF plugin stops Ranorex from finding elements

Post by amross » Fri Apr 06, 2018 1:09 am

Hi Ned,

Thank you for fixing this (I posted the initial bug report). This gives us one more reason to upgrade.