Page 1 of 1

Embed a web browser (Gecko web layout) in a Desktop app

Posted: Tue Mar 03, 2015 3:58 pm
by giomm82
Hi,
I am currently using Ranorex 5.2 for a web application where the root web document is correctly identify with the DOM capability.
The problem comes when the web application is embedded in a desktop application, and it is read as a Container adapter in stead of a WebDocument adapter, so all child elements are treated as windows forms controls.

The desktop application calls a Gecko - Moxilla layer which is in charge of containing the mozilla firefox web page in the same desktop application process.

Do you know if there is a way to recognize the controls as WebElements if the web application is embedded within the desktop app using this technology (Gecko)?

Many Thanks,
Sergio

Re: Embed a web browser (Gecko web layout) in a Desktop app

Posted: Tue Mar 03, 2015 6:54 pm
by krstcs
Due to the way embedded browsers work, the only one you are likely to have luck with is IE.

Mozilla and Chrome do not usually load extensions when used as embedded browsers, so the Ranorex extension, which is required for Ranorex to identify elements, is not loaded. This is why you aren't seeing the full DOM structure under the embedded window.

Re: Embed a web browser (Gecko web layout) in a Desktop app

Posted: Fri Mar 06, 2015 11:23 am
by giomm82
Thanks for the answer.

Now some questions come up...

1) Will it be supported in a future Ranorex release version?
2) Unfortunately, the Mozilla embedded browser can not be replaced with IE.
Would it be posible to identify the DOM elements from the standalone web browser like are in the embedded mozilla within the desktop application?

I guess I would need to duplicate how the elements are identified depending on Standalone Web Browser (DOM) or Embedded Web Browser (Container).

Best Regards,
Sergio

Re: Embed a web browser (Gecko web layout) in a Desktop app

Posted: Mon Mar 09, 2015 12:56 pm
by Support Team
Hello giomm82,

Unfortunately, we do not plan to add support for embedded mozilla/gecko.

Regards,
Robert