Forum Discussion

brian_kratsch's avatar
brian_kratsch
Contributor
12 years ago

How to record an e-signature on a canvas?

I'm working with a web app that runs on mobile devices. There is a canvas control that allows the user to e-sign using a touch screen. Is there a method that I could use to simulate a user signing the canvas? When I record using keyword testing it uses co-ordinates on the canvas but that won't work when I test on different environments with different screen resolutions. 
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Brian,


     


    TestComplete records relative coordinates. For example, when it records clicks on a panel, the coordinates are recorded relative to the panel's left top corner. The size of the panel is measured in pixels, and it doesn't change on different resolutions.


     


    So, maybe this approach will work for you.