Trace a just created object for update
I am working on a java application, where I create a object.I right click on this object and try update,delete operations which is working fine.
The script actually records the co-ordinates location of object.
When I try to execute the script on a different m/c where there are objects created already, update fails as it tries to find the object at same location.
Any solutions for this is appreciated.
Re: Trace a just created object for update
The coordinates that are learned in the script, are the coords of where you are clicking ON that object.
JavaWindow("The Main Window").Attach
JavaEditbox("name=first").click 22,44 ' position inside the java box
If you take the coords out it should default to 1,1 or the center-most area of the object. If you script is failing, I am guessing that TP is not finding the object at all for some reason.
Hope this helps,