Need to remove position argument in testcase

Ranorex Spy, Recorder, and Studio.
palanikumar.m
Posts: 8
Joined: Mon May 19, 2008 2:35 pm

Need to remove position argument in testcase

Post by palanikumar.m » Mon May 19, 2008 2:55 pm

Hi,

I am a new user of the ranorex tool.

Ranorex recorder automatically created cs file successfully after play, using record and play option. It's fine.

Can i remove the new point(x,y) in my cs file.

Plz, explain clearly.

Thanks & Regards,
Palani

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

Post by Support Team » Tue May 20, 2008 4:25 pm

Hi Palani,

yes, you can remove the new Point(x,y) statements if the control/element is uniquely identifiable by the other arguments of the find method.

Currently, there is not option in the RanorexRecorder to disable the generation of these location statements. However, it's one of the highest prioritized entries on our wanted features list.

Regards,
Alex
Ranorex Support Team

palanikumar.m
Posts: 8
Joined: Mon May 19, 2008 2:35 pm

remove mouse position

Post by palanikumar.m » Fri May 23, 2008 3:36 pm

Hi,

We cannot leave the point(new point(x,y)) argument when i try to double click.

No overload functions are available with clickcount argument separately without new point argument.

Any solution?

Regards,
Palani

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

Re: remove mouse position

Post by Support Team » Mon May 26, 2008 1:14 pm

You are right, there is no overload of the Mouse.ClickElement method that takes a clickCount, but no point. However, you can just pass a new Point(-1,-1) for the point argument. That will have the same effect as not specifying a point at all, i.e. the mouse will click on the center of the element.

Regards,
Alex
Ranorex Support Team