Unable to Identify Chrome Message Pop-up

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
braindon
Posts: 11
Joined: Tue May 25, 2021 9:44 pm

Unable to Identify Chrome Message Pop-up

Post by braindon » Mon Jun 07, 2021 10:23 pm

Hello folks,

OS: Windows 10 Enterprise 1909
Ranorex Version: 9.3.3+git.bc905490
Chrome: 91.0.4472.77

I don't want to provide a Ranorex snapshot due to the proprietary nature of the application, but I can describe the issue in detail. I'm running into an issue where Ranorex Studio (64-bit)'s repository's "Edit in Spy" as well as the standalone 64-bit Spy, as well as the 32-bit standalone spy can all find a chrome pop-up in the application under the xpath:

/form[@title~'APPNAME' or @title~'APPNAME_TITLE']/container[@accessiblename~'APPNAME']/form[@accessiblename~'URL.*says']

However, when I try to find this pop-up by via a test execution in Ranorex Studio such as a validation that the item exists, it can't find the item when I run it and make sure the chrome window containing the pop-up is in the foreground first. If I leave Ranorex Studio focused and in the foreground, then it can find the pop-up, but not when I have the actual web application in the foreground. This means that if previous tests were already focused on the web application, when it tries to find the pop-up, then the discovery will fail.

An odd difference I can discern is that when I'm in Ranorex Studio and use the "Edit in Spy", it has a warning message:

"One element found for the current selection. The parent repository folder for this item could not be uniquely identified".

However, when I use the standalone Ranorex Spy, it just says "One element found (174ms)".

I've tried many different variations of the xpath to try to get it to find this pop-up when it's visible in the foreground, with no luck. I'm not sure why I keep running into so many differences between different parts of Ranorex.

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

Re: Unable to Identify Chrome Message Pop-up

Post by odklizec » Tue Jun 08, 2021 6:45 am

Hi,

At first, please update your obsolete Ranorex version with most recent 9.5.2. If you are not eligible to update yet, try to reproduce the problem with 9.5.2 trial.

At next, there is not much anyone here can do or suggests without, at very least, a Ranorex snapshot. So all I can suggest, are the obvious suggestions.
- make sure Chrome is whitelisted
- start Chrome with parameters "-args --force-renderer-accessibility". This could help with identifying Chrome form elements.
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

braindon
Posts: 11
Joined: Tue May 25, 2021 9:44 pm

Re: Unable to Identify Chrome Message Pop-up

Post by braindon » Wed Jun 16, 2021 5:37 pm

Okay, I assume by "whitelist chrome" you are suggesting adding the website I'm targeting to the Windows trusted sites? Adding the website to the Windows trusted sites through Internet Options and then restarting Chrome did not resolve the issue. I also launched my Chrome short-cut passing the parameter you described as follows:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -args --force-renderer-accessibility

This also did not help Ranorex find message pop-up in Chrome. Also, despite already having a recent version of Ranorex, I installed the 9.5.2 trial version and this version also encounters the same exact issue. So far, none of your suggestions have solved the problem.

If you have other suggestions, feel free to offer them, otherwise, it appears to be a bug in Ranorex.

braindon
Posts: 11
Joined: Tue May 25, 2021 9:44 pm

Re: Unable to Identify Chrome Message Pop-up

Post by braindon » Wed Jun 16, 2021 11:50 pm

Okay, I think I figured out what the problem was myself or at least closer to the root cause. Ranorex Spy can find this pop-up, but a Ranorex Studio test run will not always find it:

/form[@title~'APPNAME- Object']/container[@accessiblename>'APPNAME - ']/form[@accessiblename>'APPURL_PREFIX']//text[@accessiblename>'That line is' and @accessiblerole='StaticText']

But when I remove the parent "container" like this:

/form[@title~'APPNAME- Object']//form[@accessiblename>'APPURL_PREFIX']//text[@accessiblename>'That line is' and @accessiblerole='StaticText']

Ranorex Spy will find this AND Ranorex Studio test runs.

If I just try to target the container like this:

/form[@title~'APPNAME- Object']/container[@accessiblename>'APPNAME - ']

Ranorex Spy will find it just find but not the Ranorex Studio test runner. For some reason Ranorex Studio erroneously can't find this container with the accessible name starting with 'APPNAME - ' or the caption with that pattern or a regex with that pattern. The only way I can get it to find the container there, is to just do this:

/form[@title~'APPNAME- Object']/container

It's like all the attributes of the container are just gone to Ranorex Studio or it's treating something else like a "container". Anyways, I know others are going to waste days dealing with messes like this so I thought I would do the nice thing of reporting my discovery.

Fergal
Certified Professional
Certified Professional
Posts: 367
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Unable to Identify Chrome Message Pop-up

Post by Fergal » Mon Jun 21, 2021 5:49 pm

braindon wrote:
Wed Jun 16, 2021 5:37 pm
Okay, I assume by "whitelist chrome" you are suggesting adding the website I'm targeting to the Windows trusted sites?
You can read about Ranorex whitelisting here on the Ranorex user guide.