Wrapped CEFsharp browser is not identified as CEFsharp

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
MichielV
Posts: 12
Joined: Fri Sep 07, 2018 8:12 am

Wrapped CEFsharp browser is not identified as CEFsharp

Post by MichielV » Wed May 12, 2021 1:38 pm

Hi, In our application we have an embedded CEFsharp browser where the debug port is activated (accessible via localhost:8081). However, this does not seem to be recognized by Ranorex as being a CEFsharp browser.
I have created a simple test application with an embedded CEFsharp browser using the standard CEFsharp nuget package. When spying this test application, the CEFsharp browser is available and contains a DOM of the webpage.
In our main application however, the CEFsharp browser is wrapped in another class to make some of the functionality easier to use. Could this be the cause Ranorex does not properly recognize the CEFsharp browser? Are there any options to force Ranorex to recognize this as an embedded CEFsharp browser?

spy with test application:
testapplication_spy.png
testapplication_spy.png (6.96 KiB) Viewed 395 times
spy with production application:
testapplication_spy.png
testapplication_spy.png (6.96 KiB) Viewed 395 times
debug port opened in browser with production application(multiple embedded browsers are open):
testapplication_spy.png
testapplication_spy.png (6.96 KiB) Viewed 395 times
Attachments
productionapplication_debugport.png
productionapplication_debugport.png (16.87 KiB) Viewed 395 times
productionapplication_spy.png
productionapplication_spy.png (10.69 KiB) Viewed 395 times

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

Re: Wrapped CEFsharp browser is not identified as CEFsharp

Post by odklizec » Thu May 13, 2021 10:05 am

Hi,

I'm afraid, that this scenario was most probably not considered while Ranorex team added support for CEFSharp? If enabling remote debugging for CEFSharp (as mentioned in the user guide) does not help, then you will most probably have to contact directly Ranorex support, via support form available here:
https://www.ranorex.com/support-query/
I think they will need access to your app or, at very least, a functional sample app.
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