RanorexSpy shows different Size than RanorexNet

Class library usage, coding and language questions.
grahama
Posts: 8
Joined: Tue Apr 24, 2007 7:47 pm

RanorexSpy shows different Size than RanorexNet

Post by grahama » Mon Jun 25, 2007 2:19 am

I have found a situation where RanorexSpy shows the correct element size for a window, but RanorexNet Element.Size gives the wrong value.

The window is a child window in a MDI app.

To find a the Titlebar in RanorexNet, I first location the child window using the window title, and then find the element with the Role TitleBar.

RanorexSpy and RanorexNet.Element give the exact same values for
  • Role
    Name
    Class
    Value
But RanorexSpy gives the (correct) client and screen position as
(-28, 175) - (1191, 201) 1219 x 26
and RanorexNet.Element gives the Location as (-28,175), and the Size as (28,-175) !!

Is this a bug in RanorexNet? I'm using Ranorex Pro 1.1

webops
Site Admin
Site Admin
Posts: 349
Joined: Wed Jul 05, 2006 7:44 pm

Post by webops » Mon Jun 25, 2007 9:58 pm

Is this a bug in RanorexNet? I'm using Ranorex Pro 1.1
We fixed a bug in the RxElementGetPosition RanorexCore function for the V1.2.0.
The C# Element.Size property uses this function.
We released the new version yesterday, please try it with V1.2.0 and inform us about the results.

Jenö
Ranorex Team