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

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
giomm82
Posts: 2
Joined: Tue Mar 03, 2015 3:49 pm

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

Post by giomm82 » Tue Mar 03, 2015 3:58 pm

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

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Tue Mar 03, 2015 6:54 pm

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.
Shortcuts usually aren't...

giomm82
Posts: 2
Joined: Tue Mar 03, 2015 3:49 pm

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

Post by giomm82 » Fri Mar 06, 2015 11:23 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

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

Post by Support Team » Mon Mar 09, 2015 12:56 pm

Hello giomm82,

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

Regards,
Robert