Forum Discussion

Weidson_Cordeir's avatar
Weidson_Cordeir
Contributor
13 years ago

Automating by Coordinated

Is it possible to input some value inside an object with coordinates?


Like this:

txtDescription.wText = "TestComplete"


This line above will input the string "TestComplete" inside the component named txtDescription.


I need to input the same String inside and component. But I don't have it's name. Just the coordinates.


Is it possible?

  • Hello Helen.


    May I, with the method quoted by you, insert a String inside an object without any of it's properties? Just the coordinates?


    An example: I'll click inside the TextBox. After the cursor is inside the component, I'll input a String value using the coordinates.


    .wText or .Keys("")  properties aren't an option.


    Is it possible?

  • Hello,



    No, TestComplete doesn't have a method for inserting text at coordinates. You need to use a specific object method or property for text input, such as Keys(), e.g.:



    Or you can use the global Sys.Keys method instead of the object-specific method, like this:

    window.Click(x, y);

    Sys.Keys("Test");