This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
4 / 4
Mar 2016

Hi ,

Please suggest me how to get click time of button .

I tried all possible ways but am not able to succeed.

Regards,
Sunil Suvarna

  • created

    Mar '16
  • last reply

    Mar '16
  • 3

    replies

  • 1.0k

    views

  • 3

    users

Do you want to capture the exact system time at which the click happened ?

Can you explain why you need the time of a click? It's a rather strange use case for an automated test.

For a simple, crude implementation, you can record the test client's time before the click() call and the test client's time after the call. You can then average the two times to get a pretty good estimate of when the click actually happened. Your error is determined by the latency of the request from your test client to the test device. If you need even more accuracy, you'll really need to explain why you need the time.