Dom.Browser for Edge browser not working?

Class library usage, coding and language questions.
User avatar
Aracknid
Posts: 342
Joined: Tue Aug 10, 2010 3:23 pm
Location: Toronto, Ontario, Canada

Dom.Browser for Edge browser not working?

Post by Aracknid » Tue Jul 14, 2015 4:03 pm

Hi,

Testing Windows 10 (10162) and Edge browser. Using Ranorex 5.4.0.24580.

For IE, when I find the DOM object, I like to assign the DOM.Browser object to a Form object.

Since Edge is not a Form, but a WinApp, you cannot do this. As a matter of fact, if you look at the DOM.Browser object for a DOM that goes with the Edge browser, you get invalid object.

Will there be a fix for this so that it properly returns the WinApp, or another method to get the WinApp that goes with the DOM?

Aracknid

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Dom.Browser for Edge browser not working?

Post by Support Team » Wed Jul 15, 2015 3:58 pm

Hello Aracknid,

I'm afraid that I'm not exactly sure what you want to achieve. What do you mean with "I like to assign the DOM.Browser object to a Form object"?

Thank you in advance.

Regards,
Johannes
.
Image

User avatar
Aracknid
Posts: 342
Joined: Tue Aug 10, 2010 3:23 pm
Location: Toronto, Ontario, Canada

Re: Dom.Browser for Edge browser not working?

Post by Aracknid » Wed Jul 15, 2015 4:11 pm

Well, when you launch IE and use Spy, you have a Form object for the Browser and a DOM object for the web page.

In my code, I have the DOM object stored in a variable, and I need to know which Form object goes with the DOM. As it happens, you have a method for the DOM object to return the Browser Form. In my code, I would do something like:

Code: Select all

MyBrowserForm = MyDom.Browser
Now, with the MyBrowserForm object I can do things like, maximize the form, get the screen rectangle, find the popup messages within it if the browser throws up something, etc...

With Edge, it is not a Form, so I cannot do the code...

Code: Select all

MyBrowserWinApp = MyDom.Browser
... as it will throw an error since it is not the right type (and also because it is nothing anyway)

Will you extend the ".Browser" function to return the WinApp object if the DOM is from the Edge browser?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Dom.Browser for Edge browser not working?

Post by Support Team » Thu Jul 16, 2015 3:07 pm

Hello Aracknid,

thank you for the detailed description.

We were able to reproduce the issue and are currently working on a solution.

Regards,
Johannes
.
Image

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Dom.Browser for Edge browser not working?

Post by Support Team » Wed Aug 26, 2015 11:49 am

Hello,

I have good news regarding the issue.

The bug is fixed in our latest version. Ranorex 5.4.1 is now available for download.

Please have a look at the new features, bug fixes and breaking changes, which can be found in the release notes.

Regards,
Johannes
.
Image