Forum Discussion

dastagirid's avatar
16 years ago

Screen resolution problem.

I have created a keywordtest by using recorder.In this when i ran the application and do the actions .The recorder stores the action points(like click()(15,20)) where i can click in my application.It is problem for me with differnt screen resolutions .Is any another way





Thanks.

Giri.D  

3 Replies

  • Giri,



    Just remove the coordinated from the click method. When there are no coordinates passed to click, TC will automatically click in the center of the control. You ll not have issues with the screen resolution if you are performing click that way.




    In case you have some objects/controls that TC is not able to identify then you can resort to low level recording with window coordinated (Have a look in help for this topic). That way screen resolution will not matter even if you use coordinates.




    Thnak you

    Syed

  • chaitanya517's avatar
    chaitanya517
    Occasional Visitor

    Is there any way that I can automate web applications in different screen resolutions without any changes. By the way I am scripting using namemapping it's not record & playback. 

     

    Please suggest me if you have any solution regarding this. 

    • AlexKaras's avatar
      AlexKaras
      Community Hero

      Hi,

       

      If coordinates are preserved in the test actions like .Click() etc., they are related to the top-left corner of the target object.

      Thus, there should not be any problem with different resolutions as long as the size of the object do not depend on the resolution. (And I never met design where UI objects were scaled based on the screen resolution.)