PBylenga's avatar
PBylenga
Regular Visitor
5 years ago
Status:
New Idea

Add ability to record click events without coordinates

I would like the ability to record click events without coordinates.  Coordinates can be fragile when controls change in size or when an application utilizes a zoom functionality.  Currently as a workaround we can use regex with Find & Replace but it is more difficult to make changes for keyword tests.

2 Comments

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    This is why "record" is best when used as only a discovery too rather than to generate final "production" automation code. Even if this configuration option were implemented, a best practice is still to go back and adjust the recorded code to add in appropriate "Wait" methodology, update NameMapping, etc. 

  • LinoTadros's avatar
    LinoTadros
    Community Hero

    Go back and remove the coordinates from the recorded Click event, that forces TestComplete to do the math and click in the middle of the control.

     

    Cheers

    Lino