cancel
Showing results for 
Search instead for 
Did you mean: 

Control Click using cordinates

SOLVED
Highlighted
Established Member

Control Click using cordinates

How to click on a control using coordinates .

In codedui we get the control .Then do Mouse.click(new point(control.x,control.Y).

Is there a similar method in testcomplete .

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

Re: Control Click using cordinates

Hi,

 

In TestComplete You are able to map Your control into NameMapping Repository and use .Click() method on it without coordinates.

 

example:

 

button.Click()

 

You can also refer to this object by using Sys. object

 

Spy object -> add it into nameMapping repository -> use its properties and methods.

View solution in original post

2 REPLIES 2
Highlighted
Community Leader

Re: Control Click using cordinates

Hi,

 

In TestComplete You are able to map Your control into NameMapping Repository and use .Click() method on it without coordinates.

 

example:

 

button.Click()

 

You can also refer to this object by using Sys. object

 

Spy object -> add it into nameMapping repository -> use its properties and methods.

View solution in original post

Highlighted
Community Hero

Re: Control Click using cordinates

@Wamboo has the right steps.  In TestComplete, you have the more accurate way of addressing the objects by name.  Coordinates can change from machine to machine or even on one machine if the setup or page is changed.  Using the name will make your tests much more accurate and portable.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors