CEF Warning blocks test execution

Bug reports.
dkmpbrt
Posts: 21
Joined: Thu Jan 25, 2018 9:00 am
Location: Antwerp
Contact:

CEF Warning blocks test execution

Post by dkmpbrt » Fri Nov 20, 2020 11:23 am

Hey,

When I run my test case on my website, it works pretty well. In 1 recording however, I get a CEF warning about another process than my UAT.

Code: Select all

UI elements in your CEF AUT can’t be identified because the remote debugging port isn’t enabled in your AUT or can’t be found. Make sure you’ve enabled it and set it to 8081.
Process: 'Teams' (pid 10712)
https://www.ranorex.com/help/v9.3/interfaces-connectivity/technology-instrumentation/general-troubleshooting/
(This message is only shown once per report.) 
This seems to be blocking the further execution of my test case.

Kr,
Bart

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

Re: CEF Warning blocks test execution

Post by odklizec » Fri Nov 20, 2020 11:46 am

Hi,

Have you tried to add the app under test/browser to Ranorex whitelist (Settings >> Plugins>>Win32 section >> White-listed process names)? Eventually, add Teams process name to black list as well ;)
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

dkmpbrt
Posts: 21
Joined: Thu Jan 25, 2018 9:00 am
Location: Antwerp
Contact:

Re: CEF Warning blocks test execution

Post by dkmpbrt » Fri Nov 20, 2020 1:12 pm

Hi,

It's a website, so it doesn't have a process name (except for the browser then)..

I find it strange that it throws warnings about anything else, i've specifically set my base repository item as

Code: Select all

/dom[@domain>'focus']
.

I will blacklist the processes which throws errrors

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

Re: CEF Warning blocks test execution

Post by odklizec » Fri Nov 20, 2020 1:17 pm

Hi,

I was not quite sure if the website was loaded in standard web browser or integrated browser in some kind of custom app? Hopefully, blacklisting process name will solve your problem?
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

dkmpbrt
Posts: 21
Joined: Thu Jan 25, 2018 9:00 am
Location: Antwerp
Contact:

Re: CEF Warning blocks test execution

Post by dkmpbrt » Fri Nov 20, 2020 1:43 pm

Hi,

I think I was wrong. The CEF warnings does not seem to be the issue.

Normally, I use the following xpath expression for the base app folder and this works fine:

Code: Select all

/dom[@domain>'focus']
.

However, since we've recently also made a windows app (actually website wrapped (probably like you meant) and I want the same test cases to work on the windows app, i've changed the xpath to:

Code: Select all

//dom[@domain>'focus']
I needed to do this since there is a form-element before the dom element in the windows app.

How can I use the "|" operator in RXpath?

Like for example:

Code: Select all

/form/dom[@domain>'focus'] | /dom[@domain>'focus']
This doesn't seem to work in Ranorex itself.

Thanks,
Bart

dkmpbrt
Posts: 21
Joined: Thu Jan 25, 2018 9:00 am
Location: Antwerp
Contact:

Re: CEF Warning blocks test execution

Post by dkmpbrt » Fri Nov 20, 2020 1:49 pm

Hey,

You can close this topic. I've fixed it with using the following xpath:

Code: Select all

/?/dom[@domain>'focus']
My apologies :)

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

Re: CEF Warning blocks test execution

Post by odklizec » Fri Nov 20, 2020 1:50 pm

Hi,

I'm afraid, conditional operators are only supported within xpath 'attributes' (like /form/dom[@domain>'domainA' or @domain>'domainB']). In your case, you will have to use something like this...

Code: Select all

/?/dom[@domain>'focus']
Edit: nice you found the solution ;)
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