Page 1 of 1

Need to remove position argument in testcase

Posted: Mon May 19, 2008 2:55 pm
by palanikumar.m
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

Posted: Tue May 20, 2008 4:25 pm
by Support Team
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

remove mouse position

Posted: Fri May 23, 2008 3:36 pm
by palanikumar.m
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

Re: remove mouse position

Posted: Mon May 26, 2008 1:14 pm
by Support Team
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