Page 1 of 1

Chrome native PDF plugin stops Ranorex from finding elements

Posted: Mon Jul 10, 2017 6:40 am
by amross
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.

Re: Chrome native PDF plugin stops Ranorex from finding elements

Posted: Wed Jul 12, 2017 6:06 pm
by Support Team
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

Re: Chrome native PDF plugin stops Ranorex from finding elements

Posted: Thu Jul 13, 2017 12:09 am
by amross
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.

Re: Chrome native PDF plugin stops Ranorex from finding elements

Posted: Thu Jul 13, 2017 8:04 pm
by Support Team
I will keep an eye on the issue. Any new developments on it, I will be sure to update you here.

Cheers,
Ned

Re: Chrome native PDF plugin stops Ranorex from finding elements

Posted: Tue Mar 13, 2018 11:38 pm
by gaelm
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

Re: Chrome native PDF plugin stops Ranorex from finding elements

Posted: Wed Mar 14, 2018 1:52 pm
by Support Team
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

Re: Chrome native PDF plugin stops Ranorex from finding elements

Posted: Thu Mar 15, 2018 4:13 pm
by gaelm
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.

Re: Chrome native PDF plugin stops Ranorex from finding elements

Posted: Mon Mar 19, 2018 4:52 pm
by Support Team
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

Re: Chrome native PDF plugin stops Ranorex from finding elements

Posted: Fri Apr 06, 2018 1:09 am
by amross
Hi Ned,

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