cancel
Showing results for 
Search instead for 
Did you mean: 

Control Click using cordinates

SOLVED
Highlighted
Regular Visitor

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
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
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

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.