Forum Discussion

baxatob's avatar
baxatob
Community Hero
9 years ago

Re: Is it is possible to stop TestComplete recording specific actions like drag and click?

Hi,

 

If you change the Click action settings to (-1, -1), the click will be simulated in the center of the element.

 

If you want that your element was available independently from its place on the screen, you should properly map it in the NameMapping repository. Another way - you can use Find() method to find your element by its unique property.

 

3 Replies

  • Jadwiga's avatar
    Jadwiga
    Occasional Contributor

    Hello baxatob,

     

    Thanks very much for your reply.

     

    I'm still a beginner on TC and well after you're message, I've tried looking but not sure where to change the Click action settings to (-1, -1) ?

     

    And I also need to figure how to properly map elements it in the Name Mapping repository andto use the Find() method to find  elements by its unique property.

     

    It’s all still a bit new to me and I’m trying to figure things out as I go.

    • baxatob's avatar
      baxatob
      Community Hero

      To edit your action double click on it and follow the wizard until you will see the dialog, where prompted to enter the click coordinates.

       

      Regarding NameMapping it will be better if you follow the links, that I provided, and carefully check TestComplete's documentation, because you asked general questions.

      • Jadwiga's avatar
        Jadwiga
        Occasional Contributor

        Hi baxatob,

         

        I appreciate the response. I'm going to follow your advice and let you know how I get on.

         

        Thanks again!

        Jadwiga